<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is it possible to use more datasets in one proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86100#M256983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have one dataset where the important variable are: ParentNodeName, ModelPortifolioName, ToDate, performance_2010, performance_2011, performance_2012 and performance (this is performance for 2013).&lt;/P&gt;&lt;P&gt;These are all in one dataset.&lt;/P&gt;&lt;P&gt;I kind of want to write a "where statement" in a proc report statement that says: Where todate= &amp;amp;ReportDate and Where ToDate = mdy(12, 31, 2010) in Column performance_2010 and Where ToDate = mdy(12, 31, 2011) in Column performance_2011 and Where ToDate = mdy(12, 31, 2012) in column Performance_2012 and so on.&lt;/P&gt;&lt;P&gt;But as I am informed this is not possible? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2013 13:45:08 GMT</pubDate>
    <dc:creator>Bruce123</dc:creator>
    <dc:date>2013-09-18T13:45:08Z</dc:date>
    <item>
      <title>Is it possible to use more datasets in one proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86095#M256978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I was wonderings if is possible to use more datasets when doing a proc report (it has to be in the same proc report).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i have the following code:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;PROC REPORT DATA = Performance_3_Aar HEADLINE NOWINDOWS SPLIT='*' Contents='' /* Removes node entirely */ spanrows /* &lt;SPAN lang="DA" style="font-style: inherit; font-family: 'Menlo Italic';"&gt;Θ&lt;/SPAN&gt;n stor celle pr. gruppe v&lt;SPAN lang="DA" style="font-style: inherit; font-family: 'Menlo Italic';"&gt;μ&lt;/SPAN&gt;rdi */&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%ReportStyles&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;STYLE(column) = [background=white cellwidth=75pt]&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;STYLE(report)= [font_size=0.8 font_face=Times]; /* Makro med report indstillinger */&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;TITLE FONT=Times HEIGHT=4 Color=Black&amp;nbsp; "Afkast, performance og markedsv&lt;SPAN lang="DA" style="font-style: inherit; font-family: 'Menlo Italic';"&gt;μ&lt;/SPAN&gt;rdi (pct. og mio. kr.) p&lt;SPAN lang="DA" style="font-style: inherit; font-family: 'Menlo Italic';"&gt;σ&lt;/SPAN&gt; forvaltere pr. %SYSFUNC(putn(&amp;amp;ReportDate,DDMMYY10.))";&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;FOOTNOTE FONT=Times HEIGHT=4 Color=Black 'Performance m&lt;SPAN lang="DA" style="font-style: inherit; font-family: 'Menlo Italic';"&gt;σ&lt;/SPAN&gt;lt ift. forvalter benchmark.';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;WHERE ToDate = &amp;amp;ReportDate AND mv &amp;gt;= 0.5 AND (ParentNodeName NE 'Aktier' AND ParentNodeName NE 'Obligationer' AND ParentNodeName NE 'Ejendomme');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;COLUMNS OBS ParentNodeName ModelPortfolioName&amp;nbsp; Performance Performance_2010 Performance_2011 Performance_2012;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DEFINE OBS / GROUP NOPRINT;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DEFINE ParentNodeName / 'Type' GROUP;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DEFINE ModelPortfolioName / 'Forvalter' GROUP STYLE(column) = [cellwidth=/*150pt*/130pt] ORDER=DATA;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DEFINE Performance / 'Perfor- * mance &lt;SPAN style="font-style: inherit; font-family: 'Menlo Italic';"&gt;Å&lt;/SPAN&gt;TD' FORMAT=COMMAX20.1 STYLE(column) = [cellwidth=/*50pt*/40pt] style(column) = {font_weight=Bold foreground=cback.};&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DEFINE Performance_2010 / 'Performance 2010' FORMAT=COMMAX20.1 STYLE(column) = [cellwidth=/*50pt*/40pt] style(column) = {font_weight=Bold foreground=cback.};&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DEFINE Performance_2011 / 'Performance 2011' FORMAT=COMMAX20.1 STYLE(column) = [cellwidth=/*50pt*/40pt] style(column) = {font_weight=Bold foreground=cback.};&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DEFINE Performance_2012 / 'Performance 2012' FORMAT=COMMAX20.1 STYLE(column) = [cellwidth=/*50pt*/40pt] style(column) = {font_weight=Bold foreground=cback.};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;BREAK BEFORE ParentNodeName / SUPPRESS OL SKIP UL OL STYLE(SUMMARY)= {FONT_WEIGHT=BOLD BACKGROUND=LIGHTGREEN font_size=1};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;RUN;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Is it possible to when defining variables that I define them from another dataset. So i.e. that when defining the variable performance_2010 the data is taken from another dataset then stated in the start of the code. And will it be possible to add a "where statement" to each dataset? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 11:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86095#M256978</guid>
      <dc:creator>Bruce123</dc:creator>
      <dc:date>2013-09-18T11:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use more datasets in one proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86096#M256979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc REPORT can only work with one SAS Data Set, but you may use macro logic to run Proc REPORT several times with different SAS Data Sets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 11:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86096#M256979</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2013-09-18T11:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use more datasets in one proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86097#M256980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you merge the data into the single dataset? Just based on the code you provided it seems you need the following variables all in one dataset that feeds report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ToDate mv ParentNodeName OBS ModelPortfolioName&amp;nbsp; Performance Performance_2010 Performance_2011 Performance_2012;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Is there reason this would not work?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;EJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 12:43:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86097#M256980</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2013-09-18T12:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use more datasets in one proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86098#M256981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Yes, the data is merged.&lt;/P&gt;&lt;P&gt;But the problem is that i have to pick the last date in the performance variable for the previous years, i.e. i have to pick 31/12/2010 in performance_2010, pick the date 31/12/2011 in performance_2011 and so on and at the same time get the newest date in the variable performance, which is contains the performance for 2013.&lt;/P&gt;&lt;P&gt;I was informed that it was not possible to write a "where statement" and was hoping using more datasets in one proc report was possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86098#M256981</guid>
      <dc:creator>Bruce123</dc:creator>
      <dc:date>2013-09-18T13:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use more datasets in one proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86099#M256982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently Im not understanding what is needed, because it still sounds like you need to pre process the data before pushing it through report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to select the dates you need through a data step prior to the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86099#M256982</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2013-09-18T13:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use more datasets in one proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86100#M256983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have one dataset where the important variable are: ParentNodeName, ModelPortifolioName, ToDate, performance_2010, performance_2011, performance_2012 and performance (this is performance for 2013).&lt;/P&gt;&lt;P&gt;These are all in one dataset.&lt;/P&gt;&lt;P&gt;I kind of want to write a "where statement" in a proc report statement that says: Where todate= &amp;amp;ReportDate and Where ToDate = mdy(12, 31, 2010) in Column performance_2010 and Where ToDate = mdy(12, 31, 2011) in Column performance_2011 and Where ToDate = mdy(12, 31, 2012) in column Performance_2012 and so on.&lt;/P&gt;&lt;P&gt;But as I am informed this is not possible? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86100#M256983</guid>
      <dc:creator>Bruce123</dc:creator>
      <dc:date>2013-09-18T13:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use more datasets in one proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86101#M256984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not trying to be a pain, but I think there is a solution for this. I guess the confusion is ... if the data&amp;nbsp; is truly merged then why are the extra datasets needed? If it isnt merged they why could you not select the data you need in the report from the various sources then merge them to create the source for the report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:07:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86101#M256984</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2013-09-18T14:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use more datasets in one proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86102#M256985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;You are no pain my freind &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;The data is merged, but I can easily make an unmerged dataset. Since I am able to do this, I wanted to know if it was possible to use more datasets in en proc report, since it would have solved my problem.&lt;/P&gt;&lt;P&gt;So, I have both merged and unmerged data.&lt;/P&gt;&lt;P&gt;But the problem is that when I use Proc Report, I want to pick specfik dates. Performance_2010 has the performance for 2010 and I want to pick the performance at the date 31/12/2010. Performance_2011 has the performance for 2011, and i want to pick the date 31/12/2011. To do this I have to writ a "where statement". And it is here that my problem lies. &lt;/P&gt;&lt;P&gt;I want to pick the newest date (&amp;amp;reportdate) in the variable performance, and the same time pick the date 31/12/2010 in performance_2010 and 31/12/2011 in performance_2011 and so on. &lt;/P&gt;&lt;P&gt;So, the problem is not in the data, but how the "where statement" should be written. &lt;/P&gt;&lt;P&gt;I was hoping that it was possible to use more datasets in proc report, and thus making an umerged dataset, and using that. But that is apparently not possible. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-use-more-datasets-in-one-proc-report/m-p/86102#M256985</guid>
      <dc:creator>Bruce123</dc:creator>
      <dc:date>2013-09-18T14:59:36Z</dc:date>
    </item>
  </channel>
</rss>

