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 (February 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 12 Feb 2008 13:28:51 -0500
Reply-To:   "data _null_," <datanull@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "data _null_," <datanull@GMAIL.COM>
Subject:   Re: Help on reading save .lst file
Comments:   To: Yu Zhang <zhangyu05@gmail.com>
In-Reply-To:   <445d9dbe0802120834u7756bec3je5e7dcd973539dad@mail.gmail.com>
Content-Type:   text/plain; charset=ISO-8859-1

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


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