<?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 Getting a PDF Report All on One Page in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-PDF-Report-All-on-One-Page/m-p/948310#M371077</link>
    <description>&lt;P&gt;I have a csv data set that looks something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="states_csv.png" style="width: 325px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101592i5D1B4BD533178942/image-size/large?v=v2&amp;amp;px=999" role="button" title="states_csv.png" alt="states_csv.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, I am looking to produce a PDF report that has all of the state info in the data set on one page like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="states_report.png" style="width: 597px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101593iE2B426F9250A68A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="states_report.png" alt="states_report.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The code I have to attempt this is the following:&lt;/P&gt;&lt;PRE&gt;proc import datafile = "path to csv file"
	out=StateDataSet
	dbms=csv
	replace;
run;

ods pdf file = "path to store pdf file";
proc print data = StateDataSet NOOBS label;
	format Area Comma7.0 Population Comma10.0;
	title  ;
	label State_Name = 'State Name';
	label State_Abbrev = 'State Abbrev.';
	label Postal_Abbrev = 'Postal Abbrev.';
	label Area = 'Area (Sq Mi)';
run;
ods pdf close;&lt;/PRE&gt;&lt;P&gt;However, the PDF produced stretches 2 pages, and it is in a table format. How can I format it, so that it is all in one page and it doesn't come out in the table format to replicate the example?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 02:51:55 GMT</pubDate>
    <dc:creator>unwashedhelimix</dc:creator>
    <dc:date>2024-10-21T02:51:55Z</dc:date>
    <item>
      <title>Getting a PDF Report All on One Page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-PDF-Report-All-on-One-Page/m-p/948310#M371077</link>
      <description>&lt;P&gt;I have a csv data set that looks something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="states_csv.png" style="width: 325px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101592i5D1B4BD533178942/image-size/large?v=v2&amp;amp;px=999" role="button" title="states_csv.png" alt="states_csv.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, I am looking to produce a PDF report that has all of the state info in the data set on one page like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="states_report.png" style="width: 597px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101593iE2B426F9250A68A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="states_report.png" alt="states_report.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The code I have to attempt this is the following:&lt;/P&gt;&lt;PRE&gt;proc import datafile = "path to csv file"
	out=StateDataSet
	dbms=csv
	replace;
run;

ods pdf file = "path to store pdf file";
proc print data = StateDataSet NOOBS label;
	format Area Comma7.0 Population Comma10.0;
	title  ;
	label State_Name = 'State Name';
	label State_Abbrev = 'State Abbrev.';
	label Postal_Abbrev = 'Postal Abbrev.';
	label Area = 'Area (Sq Mi)';
run;
ods pdf close;&lt;/PRE&gt;&lt;P&gt;However, the PDF produced stretches 2 pages, and it is in a table format. How can I format it, so that it is all in one page and it doesn't come out in the table format to replicate the example?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 02:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-PDF-Report-All-on-One-Page/m-p/948310#M371077</guid>
      <dc:creator>unwashedhelimix</dc:creator>
      <dc:date>2024-10-21T02:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a PDF Report All on One Page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-PDF-Report-All-on-One-Page/m-p/948312#M371079</link>
      <description>&lt;P&gt;You need customize your page size by "options papersize=(.....)".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=sashelp.zipcode;
table STATENAME/out=StateDataSet;
run;


options nodate nonumber  papersize=(21cm 38cm) ;
ods pdf file = "c:\temp\temp.pdf" style=journal ;
proc print data = StateDataSet NOOBS label  ;
	title  ;
	label STATENAME = 'State Name';
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Oct 2024 03:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-PDF-Report-All-on-One-Page/m-p/948312#M371079</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-10-21T03:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a PDF Report All on One Page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-PDF-Report-All-on-One-Page/m-p/948316#M371081</link>
      <description>&lt;P&gt;What is the proc freq for? I tried out the papersize options and the style, but the report wasn't quite in a format like below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="states_report.png" style="width: 597px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101595i6309758FAA309585/image-size/large?v=v2&amp;amp;px=999" role="button" title="states_report.png" alt="states_report.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 04:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-PDF-Report-All-on-One-Page/m-p/948316#M371081</guid>
      <dc:creator>unwashedhelimix</dc:creator>
      <dc:date>2024-10-21T04:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a PDF Report All on One Page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-PDF-Report-All-on-One-Page/m-p/948324#M371084</link>
      <description>I wrote a PROC FREQ is just to make a sample data since you did not post a data.&lt;BR /&gt;You can delete PROC FREQ and use your original dataset to PROC PRINT.&lt;BR /&gt;&lt;BR /&gt;" but the report wasn't quite in a format like "&lt;BR /&gt;What do you mean by that ? you can format your report as your wish/code :&lt;BR /&gt;&lt;BR /&gt;options nodate nonumber  papersize=(21cm 38cm) ;&lt;BR /&gt;ods pdf file = "c:\temp\temp.pdf" style=journal ;&lt;BR /&gt;proc print data = StateDataSet NOOBS label  ;&lt;BR /&gt;	format Area Comma7.0 Population Comma10.0;&lt;BR /&gt;	title  ;&lt;BR /&gt;	label State_Name = 'State Name';&lt;BR /&gt;	label State_Abbrev = 'State Abbrev.';&lt;BR /&gt;	label Postal_Abbrev = 'Postal Abbrev.';&lt;BR /&gt;	label Area = 'Area (Sq Mi)';&lt;BR /&gt;run;&lt;BR /&gt;ods pdf close;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Oct 2024 06:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-PDF-Report-All-on-One-Page/m-p/948324#M371084</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-10-21T06:00:40Z</dc:date>
    </item>
  </channel>
</rss>

