<?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: Why Proc report produces only 1 record in output and Proc print produces all 10 observations in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419766#M19977</link>
    <description>&lt;P&gt;Perfect. All columns are numeric ...And thats why this problem. Thanks a lot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Dec 2017 05:08:50 GMT</pubDate>
    <dc:creator>yashpande</dc:creator>
    <dc:date>2017-12-09T05:08:50Z</dc:date>
    <item>
      <title>Why Proc report produces only 1 record in output and Proc print produces all 10 observations</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419242#M19971</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;Simple question.&lt;/P&gt;
&lt;P&gt;I have dataset which contains 10 observations.&lt;/P&gt;
&lt;P&gt;I am using ODS PDF to create PDF file.&lt;/P&gt;
&lt;P&gt;OPTIONS ORIENTATION=landscape NODATE papersize=A1 linesize=max pagesize=max leftmargin=0.5in NODATE NOCENTER MISSING=" " &lt;BR /&gt; formchar="|----|+|---+=|-/\&amp;lt;&amp;gt;*";&lt;/P&gt;
&lt;P&gt;ods pdf file="&amp;amp;path..pdf";&lt;/P&gt;
&lt;P&gt;proc report data=work.output;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;ods pdf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this produces only 1 observation. However when I use proc print it correctly produces 10 records. what could be the issue? Any help is really appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 16:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419242#M19971</guid>
      <dc:creator>yashpande</dc:creator>
      <dc:date>2017-12-07T16:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc report produces only 1 record in output and Proc print produces all 10 observations</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419243#M19972</link>
      <description>&lt;P&gt;Please include your log in the post.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 16:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419243#M19972</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-07T16:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc report produces only 1 record in output and Proc print produces all 10 observations</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419245#M19973</link>
      <description>&lt;P&gt;Below is log when using Proc report&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;24 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;25 GOPTIONS ACCESSIBLE;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;26 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;27 OPTIONS ORIENTATION=landscape NODATE papersize=A1 linesize=max pagesize=max leftmargin=0.5in NODATE NOCENTER MISSING=" "&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;28 formchar="|----|+|---+=|-/\&amp;lt;&amp;gt;*";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;29 ods pdf file="&amp;amp;path..pdf";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: Writing ODS PDF output to DISK destination "/data/Comparison.pdf.pdf", printer "PDF".&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;30 proc report data=work.output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;31 run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NOTE: There were 24 observations read from the data set WORK.OUTPUT.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: PROCEDURE REPORT used (Total process time):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; real time 0.02 seconds&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; cpu time 0.03 seconds&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;32 ods pdf close;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: ODS PDF printed 1 page to /data/Comparison.pdf.pdf.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And below is using Proc print&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;25 GOPTIONS ACCESSIBLE;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;26 OPTIONS ORIENTATION=landscape NODATE papersize=A1 linesize=max pagesize=max leftmargin=0.5in NODATE NOCENTER MISSING=" "&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;27 formchar="|----|+|---+=|-/\&amp;lt;&amp;gt;*";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;28 ods pdf file="&amp;amp;path..pdf";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: Writing ODS PDF output to DISK destination "/data/Comparison.pdf.pdf", printer "PDF".&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;29 proc print data=work.output;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;30 run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NOTE: There were 24 observations read from the data set WORK.OUTPUT.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; real time 0.05 seconds&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; cpu time 0.05 seconds&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;31 ods pdf close;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: ODS PDF printed 1 page to /data/Comparison.pdf.pdf.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 16:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419245#M19973</guid>
      <dc:creator>yashpande</dc:creator>
      <dc:date>2017-12-07T16:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc report produces only 1 record in output and Proc print produces all 10 observations</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419246#M19974</link>
      <description>&lt;P&gt;They both show 24 records read. Can you please re-run that with a SASHELP dataset, such as CARS and post the PDF/HTML that's truncated and the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the issue isnt replicated with a SASHELP data set then it's likely an issue with the data somehow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 16:54:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419246#M19974</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-07T16:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc report produces only 1 record in output and Proc print produces all 10 observations</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419290#M19975</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I am guessing you are seeing something like #1 vs #2 in the screen shot below:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="possible_report_solution.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17079iF461BACCDB7535B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="possible_report_solution.png" alt="possible_report_solution.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the test code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data testdata;
  infile datalines;
  input id amount;
datalines;
100 15
200 22
300 35
400 41
500 58
;
run;
 
proc print data=testdata;
  title '1) with a PROC PRINT detail report you see all 5 obs';
run;
 
proc report data=testdata;
  title '2) with all numeric variables, the PROC REPORT default';
  title2 'is to summarize -- so you only see 1 row';
run;
 
proc report data=testdata;
  title '3) To see detailed rows with PROC REPORT, provide a usage for numeric variables';
  column id amount;
  define id / order;
  define amount / sum;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess is you need to switch to code like #3 report and provide a usage for a numeric variable or you need to add a GROUP or ORDER variable to the PROC REPORT code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 18:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419290#M19975</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-12-07T18:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why Proc report produces only 1 record in output and Proc print produces all 10 observations</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419766#M19977</link>
      <description>&lt;P&gt;Perfect. All columns are numeric ...And thats why this problem. Thanks a lot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 05:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Why-Proc-report-produces-only-1-record-in-output-and-Proc-print/m-p/419766#M19977</guid>
      <dc:creator>yashpande</dc:creator>
      <dc:date>2017-12-09T05:08:50Z</dc:date>
    </item>
  </channel>
</rss>

