<?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 Question on PROC PRINT options in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Question-on-PROC-PRINT-options/m-p/119745#M24622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use SAS in mainframes, i use PROC PRINT to generate a report into a mainframe dataset. But SAS is splitting the records into multiple rows as the number of variables are more. I want all the variables of a record to be printed on a single row. I have no limitation on the LRECL of the dataset, i can extend it as much as to accommodate all variables in one row. I am not able to figure out any options to do this. Can any of you help me with this, please? I have been googling for the past 3 days with no luck. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 17:05:44 GMT</pubDate>
    <dc:creator>rksenthil2003</dc:creator>
    <dc:date>2013-08-22T17:05:44Z</dc:date>
    <item>
      <title>Question on PROC PRINT options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-PROC-PRINT-options/m-p/119745#M24622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use SAS in mainframes, i use PROC PRINT to generate a report into a mainframe dataset. But SAS is splitting the records into multiple rows as the number of variables are more. I want all the variables of a record to be printed on a single row. I have no limitation on the LRECL of the dataset, i can extend it as much as to accommodate all variables in one row. I am not able to figure out any options to do this. Can any of you help me with this, please? I have been googling for the past 3 days with no luck. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 17:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-PROC-PRINT-options/m-p/119745#M24622</guid>
      <dc:creator>rksenthil2003</dc:creator>
      <dc:date>2013-08-22T17:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Question on PROC PRINT options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-PROC-PRINT-options/m-p/119746#M24623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://communities.sas.com/thread/48724"&gt;https://communities.sas.com/thread/48724&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is it the same?&amp;nbsp; errors notes?&amp;nbsp; Version?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 17:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-PROC-PRINT-options/m-p/119746#M24623</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-08-22T17:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Question on PROC PRINT options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-PROC-PRINT-options/m-p/119747#M24624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you using PROC PRINT instead of a DATA _NULL_ step to write to a file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 18:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-PROC-PRINT-options/m-p/119747#M24624</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-08-22T18:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Question on PROC PRINT options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-PROC-PRINT-options/m-p/119748#M24625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not think that you can print all to one row if you have too many variables. You may try width=minimal, and ls ps options?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 14:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-PROC-PRINT-options/m-p/119748#M24625</guid>
      <dc:creator>sandyming</dc:creator>
      <dc:date>2013-08-23T14:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Question on PROC PRINT options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-PROC-PRINT-options/m-p/119749#M24626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Senthil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you follow the links that others have provided, the main idea is that SAS limits the width to 256 in the print file.&amp;nbsp; However, you might try to work around this by defining your own output file (either in a DD statement in the JCL or in a SAS FILENAME statement).&amp;nbsp; Assuming you had properly defined a file with a larger linesize:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//MYFILE DD ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And assuming you had also tried OPTIONS LINESIZE=1000 (or whatever large value you would like), redirect the PROC PRINT output to this file using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc printto print=MYFILE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then see if your PROC PRINT behaves the way you would like.&amp;nbsp; If that doesn't do the trick, you would have to resort to Tom's suggestion.&amp;nbsp; Depending on the number of variables in your data set, that could be a burden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 19:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-PROC-PRINT-options/m-p/119749#M24626</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-08-23T19:17:20Z</dc:date>
    </item>
  </channel>
</rss>

