<?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: proc report output for two reports in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491088#M21564</link>
    <description>Hi:&lt;BR /&gt;  Other than the fact that you might have more than "2 spaces" between the 2 tables, what is wrong with your existing reports? And, how do you measure 2 spaces?&lt;BR /&gt;&lt;BR /&gt;  What is your destination of choice? RTF, PDF, HTML? Or???&lt;BR /&gt;&lt;BR /&gt;  I don't understand the purpose of creating output datasets ABS and ABS1 -- do you have something else to do with those datasets?&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
    <pubDate>Thu, 30 Aug 2018 05:08:39 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-08-30T05:08:39Z</dc:date>
    <item>
      <title>proc report output for two reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491049#M21559</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Is it possible to concatenate two or more proc reports?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The proc reports look like these&amp;nbsp;-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input brand $ Freq Freq1 perchange;&lt;BR /&gt;datalines;&lt;BR /&gt;A 2 3 8&lt;BR /&gt;B 3 5 4&lt;BR /&gt;C 4 6 2&lt;BR /&gt;D 5 1 1&lt;BR /&gt;E 6 5 8&lt;BR /&gt;F 7 7 9&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=have nowd out=abs&lt;BR /&gt;style(summary)=Header;&lt;BR /&gt;title 'Proc Report Crosstab Report';&lt;BR /&gt;column brand&lt;BR /&gt;('Enrollment' Freq Freq1 perChange);&lt;BR /&gt;define brand / group "Enrollment by Residency";&lt;BR /&gt;rbreak after / summarize;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data have1;&lt;BR /&gt;input cars $ Freq Freq1 perchange;&lt;BR /&gt;datalines;&lt;BR /&gt;A 4 1 9&lt;BR /&gt;B 6 0 5&lt;BR /&gt;C 8 1 6&lt;BR /&gt;D 1 6 8&lt;BR /&gt;E 7 4 4&lt;BR /&gt;F 6 5 1&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc report data=have1 nowd out=abs1&lt;BR /&gt;style(summary)=Header;&lt;BR /&gt;title 'Proc Report Crosstab Report';&lt;BR /&gt;column cars&amp;nbsp;&lt;BR /&gt;('Enrollment1' Freq Freq1 perChange);&lt;BR /&gt;define brand / group "Enrollment1 by College";&lt;BR /&gt;rbreak after / summarize;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the two Proc reports have out "abs" and "abs1".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My report should output the two reports one after then other in the order and have two blank spaces between them. I have attached a sample report that I would need as an output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;When I use the following code&amp;nbsp;my output is not like the one that I desire (attached with the post)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=have nowd out=abs&lt;BR /&gt;style(summary)=Header;&lt;BR /&gt;title 'Proc Report Crosstab Report';&lt;BR /&gt;column brand&lt;BR /&gt;('Enrollment' Freq Freq1 perChange);&lt;BR /&gt;define brand / group "Enrollment by Residency";&lt;BR /&gt;rbreak after / ;&lt;BR /&gt;column brand&lt;BR /&gt;('Enrollment1' Freq Freq1 perChange);&lt;BR /&gt;define brand / group "Enrollment1 by college";&lt;BR /&gt;rbreak after /;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please suggest a possible solution.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 03:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491049#M21559</guid>
      <dc:creator>75063</dc:creator>
      <dc:date>2018-08-30T03:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc report output for two reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491088#M21564</link>
      <description>Hi:&lt;BR /&gt;  Other than the fact that you might have more than "2 spaces" between the 2 tables, what is wrong with your existing reports? And, how do you measure 2 spaces?&lt;BR /&gt;&lt;BR /&gt;  What is your destination of choice? RTF, PDF, HTML? Or???&lt;BR /&gt;&lt;BR /&gt;  I don't understand the purpose of creating output datasets ABS and ABS1 -- do you have something else to do with those datasets?&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 30 Aug 2018 05:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491088#M21564</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-30T05:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc report output for two reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491097#M21565</link>
      <description>&lt;P&gt;Hi Cynthia,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted the proc reports for the two datasets&amp;nbsp; 'have' and 'have1' to be output one after the other, rather than merge horizontally as it was with the code I had provided.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The two data sets are completely independent of each other.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By&amp;nbsp; 'Blank' i was basically asking how to insert spaces between observations.&amp;nbsp; For example if a Proc report has 7 observations (independent of each other, made by concatenating from other data) how can I insert a blank&amp;nbsp; between the 2nd. and 3rd. observation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 05:51:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491097#M21565</guid>
      <dc:creator>75063</dc:creator>
      <dc:date>2018-08-30T05:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc report output for two reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491253#M21568</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I don't understand the code that you've posted. If I run all of your posted code, here's what I get:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="what_orig_code_produces.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22892iE95B4E932BAC997A/image-size/large?v=v2&amp;amp;px=999" role="button" title="what_orig_code_produces.png" alt="what_orig_code_produces.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I don't see any place that you're using ABS and ABS1 (so I didn't bother creating them). I used your posted data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The last PROC REPORT that you posted will NOT work to place one table AFTER the other. Your 2 COLUMN statements are not doing what you say you want because PROC REPORT doesn't place one column statement after the other, it places everything on 1 report row -- or tries to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You still have not said what your final destination of interest is. When I use your two original PROC REPORTS with PDF and STARTPAGE=NO, this is what I get:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="with_pdf.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22893i5B2D292C7451DC78/image-size/large?v=v2&amp;amp;px=999" role="button" title="with_pdf.png" alt="with_pdf.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which looks to me very close to what you describe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 14:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491253#M21568</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-30T14:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc report output for two reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491355#M21572</link>
      <description>&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, i am using SAS on demand for academics so do not have the privilege of a ods output.&amp;nbsp; (it gives me an error as:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ERROR: Insufficient authorization to access /pbr/biconfig/940/Lev1/SASApp/c:\temp\you.pdf)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like the output to be in sas studio , just as a proc print output.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to get the same output as you had in the reply in the SAS studio environment?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;R&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 17:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491355#M21572</guid>
      <dc:creator>75063</dc:creator>
      <dc:date>2018-08-30T17:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc report output for two reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491363#M21573</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; You CAN use SAS OnDemand for Academics with ODS. Even if you're using SAS Studio or Enterprise Guide. You just have to make a folder in your Files area and then write the output there.&lt;BR /&gt;&lt;BR /&gt;For example, on my SAS OnDemand for Academics, I have a folder called &lt;STRONG&gt;all_output&lt;/STRONG&gt; under my /home directory. Or, on SAS University Edition, I might have a folder called &lt;STRONG&gt;all_output&lt;/STRONG&gt; on my /folders/myfolders location. In either case, this is how I would create ODS output:&lt;BR /&gt;1) Make a folder called &lt;STRONG&gt;all_output&lt;/STRONG&gt; in the correct location where you have WRITE access&lt;BR /&gt;&lt;BR /&gt;2) Write the appropriate code&lt;BR /&gt;2a) SAS OnDemand for Academics:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='/home/youruserid/all_output/report.pdf';
...more code ...;
ods pdf close;
 
ods rtf file='/home/youruserid/all_output/report.rtf';
...more code ...;
ods rtf close;
 
ods html path='/home/youruserid/all_output' file='report.html';
...more code ...;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2b) SAS University Edition in a Virtual Machine:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='/folders/myfolders/all_output/report.pdf';
...more code ...;
ods pdf close;
 
ods rtf file='/folders/myfolders/all_output/report.rtf';
...more code ...;
ods rtf close;
 
ods html path='/folders/myfolders/all_output' file='report.html';
...more code ...;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then, after the output is created, you have to navigate to that location and open or download the file from the output folder.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 18:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491363#M21573</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-30T18:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc report output for two reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491369#M21574</link>
      <description>Thank you for the suggestion.&lt;BR /&gt;I wanted to read the file in the Files(Home) folder. The properties of this folder tells me that the path is : \home\myname0&lt;BR /&gt;&lt;BR /&gt;So should the ods statement read like this? -&lt;BR /&gt;ods xls file= "\home\myname0\you.xls" startpage=no ;&lt;BR /&gt;&lt;BR /&gt;and should end like&lt;BR /&gt;ods xls close;&lt;BR /&gt;&lt;BR /&gt;However, it is still giving me an error - ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;&lt;BR /&gt;Is this because xls is not a output type?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2018 18:21:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491369#M21574</guid>
      <dc:creator>75063</dc:creator>
      <dc:date>2018-08-30T18:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc report output for two reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491406#M21577</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; There is NOT any ODS XLS destination. You need to use either ODS EXCEL or ODS TAGSETS.EXCELXP. Like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS OnDemand for Academics&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='/home/youruserid/all_output/report.xlsx';
...more code ...;
ods excel close;
  
ods tagsets.excelxp file='/home/youruserid/all_output/report.xml';
...more code ...;
ods tagsets.excelxp close;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS University Edition&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='/folders/myfolders/all_output/report.xlsx';
...more code ...;
ods excel close;
  
ods tagsets.excelxp file='/folders/myfolders/all_output/report.xml';
...more code ...;
ods tagsets.excelxp close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that the FILE EXTENSIONS are important.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ODS EXCEL&lt;/FONT&gt; &lt;STRONG&gt;--only--&lt;/STRONG&gt; creates &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;.XLSX&lt;/FONT&gt;&lt;/STRONG&gt; (2007 Office Open XML format for Excel) files and&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;ODS TAGSETS.EXCELXP&lt;/FONT&gt; works best when you use the file extension of &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;.XML&lt;/STRONG&gt;&lt;/FONT&gt; (2003 Spreadsheet Markup Language XML files).&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 20:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491406#M21577</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-30T20:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc report output for two reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491420#M21581</link>
      <description>&lt;P&gt;Good day Cynthia,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the detailed explanation.&amp;nbsp; It really worked perfect for my problem.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 20:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-output-for-two-reports/m-p/491420#M21581</guid>
      <dc:creator>75063</dc:creator>
      <dc:date>2018-08-30T20:43:18Z</dc:date>
    </item>
  </channel>
</rss>

