|
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?
|