LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 23 Oct 2008 14:31:01 -0400
Reply-To:   Ya Huang <ya.huang@AMYLIN.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Ya Huang <ya.huang@AMYLIN.COM>
Subject:   Re: problem with pdf file
Comments:   To: Ran S <raan67@YAHOO.COM>

It seems to me that the only way to ask ODS to break a page is to send the page break command (put _page_) from within ODS. Since your lst file was created outside the ODS, and you never used "put _page_" in the data _null_ step, ODS won't know where to break the page. To fix this, we have to add 'put _page_' at the proper place, which means we need to parse the input file and find out the page break, then use put _page_ at that point:

options ps=41 date number;

title "old title"; data _null_; file "c:\temp\junk.lst" print; do i=1 to 220; put "XXXXXXXXXXX " i "XXXXXXXXX"; end; run;

ODS PDF FILE='c:\temp\junk.pdf'; options nodate nonumber; title; footnote;

DATA _NULL_; INFILE "c:\temp\junk.lst"; FILE PRINT; input; if substr(_infile_,1,1)='0C'x and _n_ > 1 then do; put _page_; _infile_=substr(_infile_,2); put _infile_; end; else put _infile_; RUN;

ODS PDF CLOSE;

On Thu, 23 Oct 2008 12:52:06 -0400, Ran S <raan67@YAHOO.COM> wrote:

>Hi Ya Huang, > >Both the files (.lst and .pdf) are created in SAS windows. Yeah you might >be right..its not recognizing the page break using ODS. Is there any way we >can fix this problem may be specifying page break in ODS?


Back to: Top of message | Previous page | Main SAS-L page