| Date: | Tue, 12 Feb 2008 12:58:13 -0600 |
| Reply-To: | Yu Zhang <zhangyu05@GMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Yu Zhang <zhangyu05@GMAIL.COM> |
| Subject: | Re: Help on reading save .lst file |
|
| In-Reply-To: | <7367b4e20802121028v36900d44l1116d352c940495f@mail.gmail.com> |
| Content-Type: | text/plain; charset=ISO-8859-1 |
Data_null_;
Thanks again. I was trying to set page break once I hit a sepcial string.
this time I get the output much closer to the original one. thank you for
the hint. I have one more question for you. I want to increase the pagesize
for each page. I tried option pagesize=. it dose no effect to the output PDF
file. I tried to set the topmargin= and bottommargin=, same thing this
option dosen't affect output too.
do you know is there anyway to increase the pagesize or reset the default
pagesize for ODS PDF ?
Thank you so much!
Yu
On Feb 12, 2008 12:28 PM, data _null_, <datanull@gmail.com> wrote:
> I don't know why your file does not have form feeds. Perhaps you
> have FORTRAN carriage control. (not likely).
>
> There may be some other way to identify the beginning or end of each
> page. Some recurring string that you can search for.
>
> On Feb 12, 2008 11:34 AM, Yu Zhang <zhangyu05@gmail.com> wrote:
> > Data_null_,
> >
> > thank you for your quick reply. I insert the statement put 'find form
> feed
> > here'; into the Do block. it seems like there is no such thing in my
> .LST
> > file. Do you happend to know why?
> >
> > Thanks!
> >
> > Yu
> >
> >
> >
> > On Feb 12, 2008 10:22 AM, data _null_, <datanull@gmail.com> wrote:
> > > If the LST has form feed character look for it and PUT _PAGE_;
> > >
> > > This produced output in the results viewer that look right to me.
> > >
> > > data _null_;
> > > file print;
> > > infile '............lst' length=l;
> > > input tstring $varying300. l;
> > > if tstring=:'0C'x then do;
> > > put _page_ @;
> > > tstring = substr(tstring,2);
> > > end;
> > > put tstring $varying300. l;
> > > run;
> > >
> > >
> > >
> > >
> > > On Feb 12, 2008 11:06 AM, Yu Zhang <zhangyu05@gmail.com> wrote:
> > > > Hi,
> > > >
> > > > Help, please.
> > > >
> > > > Someone send me a .lst file, which is the saved PROC tabulate
> output. I
> > > > was asking to convert it to a PDF file. I am able to put the tables
> back
> > > > to PDF file. but I can have the same page break as in original .lst
> > file.
> > > >
> > > > Is there any way we can have original page break? Thank you so
> much!!
> > > >
> > > > Yu
> > > >
> > > > here is the code i am using:
> > > >
> > > > OPTIONS NODATE NONUMBER PAGESIZE = 47 LINESIZE = 154 ;
> > > > title1;
> > > > options
> > > > orientation=landscape;
> > > > ods pdf file='test.pdf';
> > > >
> > > > data _null_;
> > > > file print;
> > > > infile 'c:\14.1.1.lst' lrecl=133 truncover;
> > > > input tstring $133.;
> > > > put tstring;
> > > > run;
> > > > ods pdf close;
> > > >
> > >
> >
> >
>
|