<?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 PRINT no paging in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69919#M20122</link>
    <description>Hi:&lt;BR /&gt;
  ODS CSV creates an ASCII text file that you should be able to FTP from Unix to Windows and open directly in Excel, especially if you give the file an extension of .CSV.&lt;BR /&gt;
 &lt;BR /&gt;
  The PROC PRINT in this instance, creates a comma-separated file, without any page breaks or titles. As long as you have SAS 8.2 or later, you should be able to use the ODS CSV destination to create a comma separated file that Excel can open and render. Your other alternatives are PROC EXPORT or the LIBNAME engine (to export a SAS dataset to an Excel binary file format) or ODS HTML (to create an HTML file that Excel can open and render (without page breaks, but with titles, if you have a SAS TITLE statement) or ODS TAGSETS.EXCELXP (to create a Spreadsheet Markup Language XML file) that Excel can open and render.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods csv file='comma_sep.csv';&lt;BR /&gt;
         &lt;BR /&gt;
proc print data=sashelp.shoes label;&lt;BR /&gt;
  var region product subsidiary stores sales returns inventory;&lt;BR /&gt;
run;&lt;BR /&gt;
            &lt;BR /&gt;
ods csv close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Mon, 26 Apr 2010 23:37:09 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-04-26T23:37:09Z</dc:date>
    <item>
      <title>PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69915#M20118</link>
      <description>I frequently have to produce outputs which contain no titles, headers or page breaks.  I there a way to turn off all paging in PROC PRINT.  The best I have been able to do so far is to set the lines in OPTIONS to a high number, however some data listings exceed even those line limits and I still get page breaks.</description>
      <pubDate>Sat, 17 Jan 2009 05:39:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69915#M20118</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-01-17T05:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69916#M20119</link>
      <description>None that I am aware of, other than setting PAGESIZE=MAX (as you indirectly mentioned).  A SAS DATA step using PUT to a non-print (FILE fileref NOPRINT) destination is one option.  Or, possibly, consider using ODS CSV with RS=NONE, and parse your generated output data, may be another option.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 17 Jan 2009 15:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69916#M20119</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-01-17T15:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69917#M20120</link>
      <description>Hi:&lt;BR /&gt;
  If you do make a CSV file from your procedure output, then your limitation on the number of report rows that you can have are limited by your spreadsheet program limit.&lt;BR /&gt;
  &lt;BR /&gt;
  Other options to a DATA step program writing to a file are:&lt;BR /&gt;
--investigate the use of the FORMDLIM option, which does not remove page break characters, but would let you replace the usual page break character with something like a line of dashes, for example:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a000279106.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a000279106.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
It is possible that some combination of FORMDLIM with PROC PRINTTO will give you a LISTING version of your output that does not have page breaks.&lt;BR /&gt;
&lt;BR /&gt;
--make an ODS HTML file with style=minimal. There are no page breaks in an HTML file you will get one huge table with all the report rows. Page breaks are only inserted in an HTML file when the browser needs to print the file. The viewer for an HTML file is a web browser or any HTML viewer.&lt;BR /&gt;
&lt;BR /&gt;
--avoid "paged" destinations, like PDF and RTF. Those destinations DO insert page break characters or instructions, as appropriate to the destination.&lt;BR /&gt;
&lt;BR /&gt;
I'm just wondering what the purpose of no page breaks is -- without any kind of pause or reader break in the output, it will be very hard for someone to review the output. If all you want is an archive or record of the output and you don't intend to look at the output file after the fact, then the page break characters and page numbers don't add -that- much to the size of the file (and you can turn the titles and page numbers off). You could just use ODS or PROC PRINTTO to do the equivalent of taking a snapshot of the LISTING file output and then store the file on disk.&lt;BR /&gt;
&lt;BR /&gt;
  Just a few more suggestions.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Sat, 17 Jan 2009 16:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69917#M20120</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-01-17T16:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69918#M20121</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I'm also seeking the abilty to print to the output window with no breaks.&lt;BR /&gt;
&lt;BR /&gt;
I need to copy output from the SAS output window in Unix and paste into Excel in Windows.  I'm really struggling to make this 'easy'.  (No, open office isn't allowing cut and paste, sigh).  And I can't share data between platforms.&lt;BR /&gt;
&lt;BR /&gt;
I've used ODS to save the output to a sas dataset.  But when I print the dataset with proc print - it breaks up the dataset with titles and extra lines.  The more I can eliminate this - the easier I can copy to Excel and use 'text to columns' in one fell swoop.&lt;BR /&gt;
&lt;BR /&gt;
Second problem:  For some reason, the header row that lists the variable names isn't always left justified.  Any way to force the variable names to print left-justified?  It seems to be centering variable names that take up 2 rows.  When I use 'text to columns' with a space as the delimiter - it throws off everything because it thinks the space+title represent 2 columns.&lt;BR /&gt;
&lt;BR /&gt;
This has been exhausting - any help is appreciated.  My hands are somewhat tied as I can't get open office to copy/paste to windows excel w/ any success.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Mon, 26 Apr 2010 22:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69918#M20121</guid>
      <dc:creator>anjgupta</dc:creator>
      <dc:date>2010-04-26T22:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69919#M20122</link>
      <description>Hi:&lt;BR /&gt;
  ODS CSV creates an ASCII text file that you should be able to FTP from Unix to Windows and open directly in Excel, especially if you give the file an extension of .CSV.&lt;BR /&gt;
 &lt;BR /&gt;
  The PROC PRINT in this instance, creates a comma-separated file, without any page breaks or titles. As long as you have SAS 8.2 or later, you should be able to use the ODS CSV destination to create a comma separated file that Excel can open and render. Your other alternatives are PROC EXPORT or the LIBNAME engine (to export a SAS dataset to an Excel binary file format) or ODS HTML (to create an HTML file that Excel can open and render (without page breaks, but with titles, if you have a SAS TITLE statement) or ODS TAGSETS.EXCELXP (to create a Spreadsheet Markup Language XML file) that Excel can open and render.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods csv file='comma_sep.csv';&lt;BR /&gt;
         &lt;BR /&gt;
proc print data=sashelp.shoes label;&lt;BR /&gt;
  var region product subsidiary stores sales returns inventory;&lt;BR /&gt;
run;&lt;BR /&gt;
            &lt;BR /&gt;
ods csv close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 26 Apr 2010 23:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69919#M20122</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-04-26T23:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69920#M20123</link>
      <description>Thank you for the reply.  For certain reasons - I cannot use FTP.  So I must rely on copying and pasting from SAS to Excel.  Any additional tips are welcomed.</description>
      <pubDate>Tue, 27 Apr 2010 00:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69920#M20123</guid>
      <dc:creator>anjgupta</dc:creator>
      <dc:date>2010-04-27T00:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69921#M20124</link>
      <description>Hi:&lt;BR /&gt;
  The ODS CSV file is an ASCII file without page breaks or titles. You should be able to open it in a text editor (such as VI) on UNIX and do your copy and then paste to Excel on Windows.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 27 Apr 2010 14:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69921#M20124</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-04-27T14:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69922#M20125</link>
      <description>You may also consider using SAS-generated EMAIL with your CSV file as an attachment or imbedded in the EMAIL body.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 27 Apr 2010 21:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69922#M20125</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-04-27T21:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69923#M20126</link>
      <description>Thanks for the clarification, Cynthia - &lt;BR /&gt;
&lt;BR /&gt;
Both the csvall and csv file worked well.  I made the pico window large enough so I could copy all output.  Probably a more swift way to copy all - but I'm relearning unix after many years away.&lt;BR /&gt;
&lt;BR /&gt;
The only issue with the csvall was a lot of extra space between titles and data - but I can live with that.  Unless there's a trick, of course.&lt;BR /&gt;
&lt;BR /&gt;
Best</description>
      <pubDate>Wed, 28 Apr 2010 19:22:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69923#M20126</guid>
      <dc:creator>anjgupta</dc:creator>
      <dc:date>2010-04-28T19:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69924#M20127</link>
      <description>Since your ORIGINAL post said "no titles" that would indicate the use of ODS CSV -- which does not use SAS titles. &lt;BR /&gt;
&lt;BR /&gt;
ODS CSVALL will cause SAS titles and BY lines and Procedure titles to show in the CSV file. The way to avoid titles is to use ODS CSV.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 28 Apr 2010 19:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69924#M20127</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-04-28T19:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69925#M20128</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Thanks.  Ideally, I'd have the titles print once per proc - and your suggestion of printing to CSV worked (for titles, I use CSVALL).   There's a blank line after every title - ideally I'd supress it, but don't know if I can.&lt;BR /&gt;
&lt;BR /&gt;
The main problem of having the output broken up has been solved.&lt;BR /&gt;
&lt;BR /&gt;
Anjali</description>
      <pubDate>Wed, 28 Apr 2010 20:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69925#M20128</guid>
      <dc:creator>anjgupta</dc:creator>
      <dc:date>2010-04-28T20:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69926#M20129</link>
      <description>Somewhat related - is there any way to append to a csvall file?  I'm running a macro that recreates files under different conditions - and I'd like one file of results in the end.&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to reset the file to itself - if it's been created ... but appending to a csvall file would be grand.</description>
      <pubDate>Thu, 29 Apr 2010 17:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69926#M20129</guid>
      <dc:creator>anjgupta</dc:creator>
      <dc:date>2010-04-29T17:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69927#M20130</link>
      <description>Hi:&lt;BR /&gt;
  For ODS HTML and ODS CSV (as far as I've tested the code), you can use the MOD option on the FILENAME statement to append to an existing file...as shown in the program below.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
** start by making CSV file of male students;&lt;BR /&gt;
filename newcsv 'c:\temp\new.csv';&lt;BR /&gt;
                &lt;BR /&gt;
ods csv file=newcsv;&lt;BR /&gt;
      &lt;BR /&gt;
  proc print data=sashelp.class;&lt;BR /&gt;
    where sex = 'M';&lt;BR /&gt;
  run;&lt;BR /&gt;
ods csv close;&lt;BR /&gt;
          &lt;BR /&gt;
** Now add 12-year old students to existing file;&lt;BR /&gt;
filename newcsv 'c:\temp\new.csv' mod;&lt;BR /&gt;
   &lt;BR /&gt;
ods csv file=newcsv;&lt;BR /&gt;
      &lt;BR /&gt;
  proc print data=sashelp.class;&lt;BR /&gt;
  where age = 12;&lt;BR /&gt;
  run;&lt;BR /&gt;
ods csv close;&lt;BR /&gt;
             &lt;BR /&gt;
** Now add Females to existing file;&lt;BR /&gt;
filename newcsv 'c:\temp\new.csv' mod;&lt;BR /&gt;
     &lt;BR /&gt;
ods csv file=newcsv ;&lt;BR /&gt;
     &lt;BR /&gt;
  proc print data=sashelp.class;&lt;BR /&gt;
  where sex = 'F';&lt;BR /&gt;
  run;&lt;BR /&gt;
ods csv close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 29 Apr 2010 18:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69927#M20130</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-04-29T18:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69928#M20131</link>
      <description>Perfect - many thanks.</description>
      <pubDate>Thu, 29 Apr 2010 19:48:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69928#M20131</guid>
      <dc:creator>anjgupta</dc:creator>
      <dc:date>2010-04-29T19:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69929#M20132</link>
      <description>Hopefully, one last task.  I use PICO - but might have access to other editors.  Do any offer 'select all' as a text option?   I've messed around with Emacs just now but can't grab the entire contents.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Thu, 29 Apr 2010 20:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69929#M20132</guid>
      <dc:creator>anjgupta</dc:creator>
      <dc:date>2010-04-29T20:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69930#M20133</link>
      <description>Sorry, can't help with this. I generally avoid editing files on UNIX and when I do have to edit files, I use the SAS Program Editor to edit Unix text files.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 29 Apr 2010 20:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69930#M20133</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-04-29T20:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT no paging</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69931#M20134</link>
      <description>Anjgupta,    &lt;BR /&gt;
some information more   perhaps usefull to you&lt;BR /&gt;
&lt;BR /&gt;
I can attest that under this configuration (i suppose similar to yours)&lt;BR /&gt;
-a open x11 screen showing  a linux interactive sas session  on a server&lt;BR /&gt;
-on a windows pc, using Crimson Editor&lt;BR /&gt;
&lt;BR /&gt;
you may copy paste every sas results  or code&lt;BR /&gt;
from the sas linux screen to Crimson Editor (i think this is true also for other only text editor but not true for word,open office&lt;BR /&gt;
&lt;BR /&gt;
if you save you output to a file under linux from the output screen you LOOSE the  page skip delimiter&lt;BR /&gt;
but If under sas linux, you are saving the output with proc printto&lt;BR /&gt;
then you obtain a file WITH a valid page skip under Windows.&lt;BR /&gt;
&lt;BR /&gt;
the command print file="~;;;;.lst"  is also saving the entire output screen&lt;BR /&gt;
WITH the page skip delimiter&lt;BR /&gt;
&lt;BR /&gt;
i think FORMDLIM may possibly change this situation&lt;BR /&gt;
&lt;BR /&gt;
BUT you solution is to transit through a text editor and no going directly to excel&lt;BR /&gt;
and then saving it with a correct end of line&lt;BR /&gt;
&lt;BR /&gt;
Crimson (free) allow this and is well working also for printing under a windows context&lt;BR /&gt;
&lt;BR /&gt;
You must also know that with the help of  an administrator on linux/unix&lt;BR /&gt;
you can mount under windows a view on the linux/unix server to see under&lt;BR /&gt;
windows your files (your output sas files   of course too) &lt;BR /&gt;
&lt;BR /&gt;
Andre</description>
      <pubDate>Fri, 30 Apr 2010 07:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT-no-paging/m-p/69931#M20134</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2010-04-30T07:59:03Z</dc:date>
    </item>
  </channel>
</rss>

