Date: Tue, 11 Jan 2000 17:21:11 GMT
Reply-To: lpogoda@AOL.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: lpogoda@AOL.COM
Organization: Deja.com - Before you buy.
Subject: Re: page n of n
That strikes me as a little clumsy. If you're in a data step, why not
just set the HEADS option of the FILE statement? That way, every time
the heading section is executed, you can increment an accumulator.
In article <947604718.15071.0.nnrp-08.c29fddf2@news.demon.co.uk>,
"Andrew Davey" <andrew.davey@synequanon.com> wrote:
> That's one of the solutions I came up with. I am also working with
data
> _null_, using the linesleft with the ps options and incrementing a
variable
> by one each time the linesleft are equal to the ps setting. This
works but
> relies on the data being on individual lines, no lines between
> patients/observations and several other factors.
>
> I'll let you know what happens.
> Thanks for your reply Andy.
>
> Andrew Davey
> SAS Programmer / Analyst.
>
> andy blissett <andy.blisset@royalmail.co.uk> wrote in message
> news:947604212.54882@igateway.postoffice.co.uk...
> > I send the output to a file using proc printto.
> >
> > I then read the file back in saerch for the printer control
characters.
> > Number 1 in position 1. This indicates a new page. I then put the
data
> out
> > and at the end of each page put out a page counter that I have
created an
> > incremented- easy.
> >
> > If you need more info then give us a shout
> >
> > Andrew Davey wrote in message
> > <947601923.13875.0.nnrp-08.c29fddf2@news.demon.co.uk>...
> > >Can anyone please tell me a quick way of calculating the total
number of
> > >pages when printing using proc print, proc report or data _null_?
> > >
> > >We have thought of a couple of methods but they seem a little long
winded
> > >and we are really pushed for time.
> > >
> > >Many thanks for all your help in advance.
> > >
> > >Andrew Davey
> > >Synequanon
> > >
> > >
> >
> >
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
|