<?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 How can I use proc report from multiple datasets to make a summary report? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193672#M13099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new to SAS and currently I'm trying to come up with a daily summary report that should look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Remarks&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Overall Stock (%)&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;90.34&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;+1.00% from yesterday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Amount of tuna (Mg)&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;4000.6&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Total Revenue ($ '000)&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;30.1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the individual values (Overall Stock, Amount of tuna, Total Revenue) in different queries (1 row each, 2 variables for overall stock and 1 variable for the other two) but how can I go about consolidating them into a table like this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that it is possible to join the queries vertically but this does not allow me to overwrite the formatting depending on where the value came from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2015 03:53:56 GMT</pubDate>
    <dc:creator>dory</dc:creator>
    <dc:date>2015-05-27T03:53:56Z</dc:date>
    <item>
      <title>How can I use proc report from multiple datasets to make a summary report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193672#M13099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new to SAS and currently I'm trying to come up with a daily summary report that should look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Remarks&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Overall Stock (%)&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;90.34&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;+1.00% from yesterday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Amount of tuna (Mg)&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;4000.6&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;Total Revenue ($ '000)&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;30.1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the individual values (Overall Stock, Amount of tuna, Total Revenue) in different queries (1 row each, 2 variables for overall stock and 1 variable for the other two) but how can I go about consolidating them into a table like this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that it is possible to join the queries vertically but this does not allow me to overwrite the formatting depending on where the value came from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 03:53:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193672#M13099</guid>
      <dc:creator>dory</dc:creator>
      <dc:date>2015-05-27T03:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use proc report from multiple datasets to make a summary report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193673#M13100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC SQL + UNION &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 12:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193673#M13100</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-05-27T12:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use proc report from multiple datasets to make a summary report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193674#M13101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its a common question this.&amp;nbsp; If your output has difffering data and formats, then the easiest way to get it is to create a shell dataset where all the variables are text.&amp;nbsp; Then you can put what you want in each cell, e.g. (and note I am just making up your data here, you will need to change it to fit what you have):&lt;/P&gt;&lt;P&gt;data template;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length col1 col2 col3 $200;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set overall_stock (in=a) amount_of_tuna (in=b) total_revenue (in=c);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if a then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col1="Overall Stock (%);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col2=strip(put(stock,8.2));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col3="+"||stript(put(pcent,8.2))||"% from yesterday";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if b then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col1="&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-align: center; background-color: #ffffff;"&gt;Amount of tuna (Mg)";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-align: center; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col2=strip(put(tuna,8.1));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-align: center; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col3="-";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-align: center; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-align: center; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-align: center; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else do;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-align: center; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-align: center; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-align: center; background-color: #ffffff;"&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 12:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193674#M13101</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-05-27T12:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use proc report from multiple datasets to make a summary report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193675#M13102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROC REPORT will allow you to use a different format on a different row, depending on the value of what is in the first column.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="10613" alt="proc_report_call_define.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/10613_proc_report_call_define.png" /&gt;&lt;/P&gt;&lt;P&gt;So if you do restructure your data so that it is approximately in this format, your 2nd column could be all numeric and then you could use a CALL DEFINE statement to change the format for report purposes. The code that produced this screen shot is below. I made a "helper" variable called ORD to make it easier to test which format to use for which row and also because it appears you want Overall Stock to appear before Amount of tuna on the report and normally, PROC REPORT would put the A before the O. So the ORD variable is helping to set the non-alpha order that you want for the rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data testdata;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; length Type $20 val 8 remark $80;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; infile datalines dlm=',' dsd;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; input ord type $ val remark $;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; ** percent format will multiply by 100, so adjust number;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; if ord = 1 then val = val/100;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;return;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;datalines4;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;1,"Overall Stock (%)",&amp;nbsp; 90.34," +1.00% from yesterday" &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;2,"Amount of tuna (Mg)",&amp;nbsp; 4000.6," - "&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;3,"Total Revenue ($ '000)",&amp;nbsp; 30.1," - "&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;;;;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\diff_format.html';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=testdata;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column ord type val remark;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define ord / order noprint;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define type / order order=data ' ';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define val / display ' ';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define remarks / display;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; compute val;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ord = 1 then&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_col_,'format','percent9.2');&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if ord = 2 then&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_col_,'format','best8.1');&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if ord = 3 then&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_col_,'format','dollar9.1');&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 13:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193675#M13102</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-05-27T13:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use proc report from multiple datasets to make a summary report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193676#M13103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi xia keshan, RW9 and Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your responses. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have a lot more rows than the table I included above, so a shell dataset will be quite time consuming to write and may not be easily maintained by other operators in future. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to convert the formats, but only for the first column. I tried to use&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier; background-color: #ffffff;"&gt;call define(_C2_,'format','percent9.2'); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but the column doesn't change its format. Any advice? &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 02:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193676#M13103</guid>
      <dc:creator>dory</dc:creator>
      <dc:date>2015-05-28T02:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use proc report from multiple datasets to make a summary report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193677#M13104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; You don't show enough code or data to make a constructive comment. It will really depend on the OTHER statements in your program and the usages that you have in your DEFINE statements. You might want to work with Tech Support on this.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 18:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193677#M13104</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-05-28T18:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use proc report from multiple datasets to make a summary report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193678#M13105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this is what I have: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=qry_join&lt;/P&gt;&lt;P&gt;&amp;nbsp; noheader&lt;/P&gt;&lt;P&gt;&amp;nbsp; split='|';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; column ID Descriptor Value ValueDiff;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define ID / noprint display order;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define descriptor / display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define value / display center;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define valuediff / display center;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; compute value;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if ID=1 OR ID=2 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; call define(_COL_,'FORMAT','8.2');&lt;/P&gt;&lt;P&gt;&amp;nbsp; call define(_C2_,'FORMAT','8.1');&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; else do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; call define(_COL_,'FORMAT','10.1');&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I run it, I get these errors/notes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Invalid use of _COL_ or _ROW_ in CALL DEFINE&lt;/P&gt;&lt;P&gt;NOTE: Argument 1 to function DEFINE at line 3 column 7 is invalid.&lt;/P&gt;&lt;P&gt;ERROR: Invalid column specification in CALL DEFINE.&lt;/P&gt;&lt;P&gt;NOTE: Argument 1 to function DEFINE at line 3 column 7 is invalid.&lt;/P&gt;&lt;P&gt;NOTE: Invalid use of _COL_ or _ROW_ in CALL DEFINE&lt;/P&gt;&lt;P&gt;NOTE: Argument 1 to function DEFINE at line 3 column 7 is invalid.&lt;/P&gt;&lt;P&gt;NOTE: Invalid use of _COL_ or _ROW_ in CALL DEFINE&lt;/P&gt;&lt;P&gt;NOTE: Argument 1 to function DEFINE at line 3 column 7 is invalid.&lt;/P&gt;&lt;P&gt;ERROR: Invalid column specification in CALL DEFINE.&lt;/P&gt;&lt;P&gt;NOTE: Argument 1 to function DEFINE at line 3 column 7 is invalid.&lt;/P&gt;&lt;P&gt;NOTE: Invalid use of _COL_ or _ROW_ in CALL DEFINE&lt;/P&gt;&lt;P&gt;NOTE: Argument 1 to function DEFINE at line 3 column 7 is invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I have valuediff to show the +1.00% from yesterday instead of having the whole string. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 01:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193678#M13105</guid>
      <dc:creator>dory</dc:creator>
      <dc:date>2015-05-29T01:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use proc report from multiple datasets to make a summary report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193679#M13106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Again, without data, it is hard to comment in great detail. It appears that the data used by this program is not the same as the data with REMARKS that you posted originally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But there are some obvious issues. You do not have any ACROSS statements. So not sure why you are referencing _C2_ -- that is generally reserved for working with ACROSS items. If you want to change the value for DESCRIPTOR (which, conceptually might be thought of a _C2_), then the CALL DEFINE would be:&lt;/P&gt;&lt;P&gt;call define ('descriptor','format', '8.1'); or&lt;/P&gt;&lt;P&gt;call define('_c2_','format','8.1')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; So, the issue with either reference is that even if you did properly quote the first argument, DESCRIPTOR is probably a character variable and can't take a numeric format. Also, it is incorrect to have both display and order as the usage for your ID variable. If you look at my example, my ORD variable was defined ONLY as an ORDER item on the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF, on the other hand, you are trying to change the VALUEDIFF item, then _C2_ is absolutely the wrong way to reference that column for 2 reasons. 1) PROC REPORT works from left to right and VALUEDIFF is placed AFTER VALUE in the column statement. So you can't touch VALUEDIFF in the COMPUTE block for VALUE and 2) VALUEDIFF is NOT _C2_ -- you would need a separate compute block for VALUEDIFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Modifying my previously posted sample data to include VALUEDIFF, I produced these results with the code shown in the screen shot. Notice that there is no reference to _C2_ needed. I changed the style as well as the format, so you could see the specific statements and where the changes were made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;IMG alt="compute_block.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/10677_compute_block.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 16:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193679#M13106</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-05-29T16:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use proc report from multiple datasets to make a summary report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193680#M13107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the detailed explanation. I didn't realise that _C2_ was restricted to ACROSS variables -- sorry, I'm quite new to SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to change the format for the second column doing the compute block like you suggested in your image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 07:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-use-proc-report-from-multiple-datasets-to-make-a/m-p/193680#M13107</guid>
      <dc:creator>dory</dc:creator>
      <dc:date>2015-06-04T07:39:39Z</dc:date>
    </item>
  </channel>
</rss>

