From: Andrew Z. on
I am looking to one page of brief text at the beginning of PDF report
to introduce the reader to the tables and graphs which follow. The
introduction is too long for regular SAS footnotes, so is there a
better option than the mess below? :)


Andrew


/
*---------------------------------------------------------------------------
*/

data lines;

input line & $80.;
datalines;
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas
congue sagittis convallis. Phasellus ultricies velit suscipit eros
sollicitudin a hendrerit tellus scelerisque. Pellentesque lacinia
adipiscing sapien at faucibus. Nunc tincidunt imperdiet placerat.
Proin nunc sapien, imperdiet commodo dignissim eget, tempus nec
libero. Pellentesque tellus est, faucibus et pharetra malesuada,
faucibus
eu justo. Maecenas luctus pharetra quam, a dignissim nunc dapibus a.
Cras tempor consectetur congue. Proin ut purus ipsum. Integer
sagittis
dapibus faucibus. Pellentesque ac sem eu nunc imperdiet rhoncus. Cras
convallis ullamcorper rutrum. Integer ornare tincidunt dapibus. Ut
nec
lectus vel augue posuere interdum.

;

ods pdf;

/* introduction */
proc print data=lines NOOBS ;run;
/* tables and charts would go here */
ods pdf close;
From: Ya Huang on
Use ods pdf text="xxxx";

Since ods pdf text is open space statment, you can use
call exxcute to generate it:

ods pdf file="c:\temp\junk.pdf";

/* introduction */
data _null_;
set lines;
call execute('ods pdf text="'||trim(line)||'";');
run;

ods pdf startpage=now;
/* table here */
proc print data=sashelp.class;
run;

ods pdf close;


On Fri, 6 Nov 2009 11:31:03 -0800, Andrew Z. <ahz001(a)GMAIL.COM> wrote:

>I am looking to one page of brief text at the beginning of PDF report
>to introduce the reader to the tables and graphs which follow. The
>introduction is too long for regular SAS footnotes, so is there a
>better option than the mess below? :)
>
>
>Andrew
>
>
>/
>*--------------------------------------------------------------------------
-
>*/
>
>data lines;
>
> input line & $80.;
> datalines;
>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas
>congue sagittis convallis. Phasellus ultricies velit suscipit eros
>sollicitudin a hendrerit tellus scelerisque. Pellentesque lacinia
>adipiscing sapien at faucibus. Nunc tincidunt imperdiet placerat.
>Proin nunc sapien, imperdiet commodo dignissim eget, tempus nec
>libero. Pellentesque tellus est, faucibus et pharetra malesuada,
>faucibus
>eu justo. Maecenas luctus pharetra quam, a dignissim nunc dapibus a.
>Cras tempor consectetur congue. Proin ut purus ipsum. Integer
>sagittis
>dapibus faucibus. Pellentesque ac sem eu nunc imperdiet rhoncus. Cras
>convallis ullamcorper rutrum. Integer ornare tincidunt dapibus. Ut
>nec
>lectus vel augue posuere interdum.
>
>;
>
>ods pdf;
>
>/* introduction */
>proc print data=lines NOOBS ;run;
>/* tables and charts would go here */
>ods pdf close;
From: Jack Hamilton on
What about that solution do you consider to be messy?

--
Jack Hamilton
jfh(a)alumni.stanford.org
Caelum non animum mutant qui trans mare currunt.

On Nov 6, 2009, at 11:31 am, Andrew Z. wrote:

> I am looking to one page of brief text at the beginning of PDF report
> to introduce the reader to the tables and graphs which follow. The
> introduction is too long for regular SAS footnotes, so is there a
> better option than the mess below? :)
>
>
> Andrew
>
>
> /
> *---------------------------------------------------------------------------
> */
>
> data lines;
>
> input line & $80.;
> datalines;
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas
> congue sagittis convallis. Phasellus ultricies velit suscipit eros
> sollicitudin a hendrerit tellus scelerisque. Pellentesque lacinia
> adipiscing sapien at faucibus. Nunc tincidunt imperdiet placerat.
> Proin nunc sapien, imperdiet commodo dignissim eget, tempus nec
> libero. Pellentesque tellus est, faucibus et pharetra malesuada,
> faucibus
> eu justo. Maecenas luctus pharetra quam, a dignissim nunc dapibus a.
> Cras tempor consectetur congue. Proin ut purus ipsum. Integer
> sagittis
> dapibus faucibus. Pellentesque ac sem eu nunc imperdiet rhoncus. Cras
> convallis ullamcorper rutrum. Integer ornare tincidunt dapibus. Ut
> nec
> lectus vel augue posuere interdum.
>
> ;
>
> ods pdf;
>
> /* introduction */
> proc print data=lines NOOBS ;run;
> /* tables and charts would go here */
> ods pdf close;
From: Andrew Z. on
Jack,

My 'proc print' method draws a header at the top and borders around
each line. Ya Huang's method was a big improvement, but it ignores
the title statement (it always prints the same "SAS System" title).
Someone directly emailed me a nice data-step based solution which
allows me to set the title: I can't say more because the email
includes a confidentiality notice.


Randy,

I should have mentioned I use SAS 9.1.3.



Andrew




On Nov 6, 1:51 pm, j...(a)STANFORDALUMNI.ORG (Jack Hamilton) wrote:
> What about that solution do you consider to be messy?
>
> --
> Jack Hamilton
> j...(a)alumni.stanford.org
> Caelum non animum mutant qui trans mare currunt.
>
> On Nov 6, 2009, at 11:31 am, Andrew Z. wrote:
>
> > I am looking to one page of brief text at the beginning of PDF report
> > to introduce the reader to the tables and graphs which follow.  The
> > introduction is too long for regular SAS footnotes, so is there a
> > better option than the mess below? :)
>
> > Andrew
>
> > /
> > *---------------------------------------------------------------------------
> > */
>
> > data lines;
>
> >   input line & $80.;
> >   datalines;
> > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas
> > congue sagittis convallis. Phasellus ultricies velit suscipit eros
> > sollicitudin a hendrerit tellus scelerisque. Pellentesque lacinia
> > adipiscing sapien at faucibus. Nunc tincidunt imperdiet placerat.
> > Proin nunc sapien, imperdiet commodo dignissim eget, tempus nec
> > libero. Pellentesque tellus est, faucibus et pharetra malesuada,
> > faucibus
> > eu justo. Maecenas luctus pharetra quam, a dignissim nunc dapibus a.
> > Cras tempor consectetur congue. Proin ut purus ipsum. Integer
> > sagittis
> > dapibus faucibus. Pellentesque ac sem eu nunc imperdiet rhoncus. Cras
> > convallis ullamcorper rutrum. Integer ornare tincidunt dapibus. Ut
> > nec
> > lectus vel augue posuere interdum.
>
> > ;
>
> > ods pdf;
>
> > /* introduction */
> > proc print data=lines NOOBS ;run;
> > /* tables and charts would go here */
> > ods pdf close;
>
>

From: Andrew Z. on
Jack,

My 'proc print' method draws a header at the top and borders around
each line. Ya Huang's method was a big improvement, but it ignores
the title statement (it always prints the same "SAS System" title).
Someone directly emailed me a nice data-step based solution which
allows me to set the title: I can't say more because the email
includes a confidentiality notice.


Randy,

I should have mentioned I use SAS 9.1.3.



Andrew




On Nov 6, 1:51 pm, j...(a)STANFORDALUMNI.ORG (Jack Hamilton) wrote:
> What about that solution do you consider to be messy?
>
> --
> Jack Hamilton
> j...(a)alumni.stanford.org
> Caelum non animum mutant qui trans mare currunt.
>
> On Nov 6, 2009, at 11:31 am, Andrew Z. wrote:
>
> > I am looking to one page of brief text at the beginning of PDF report
> > to introduce the reader to the tables and graphs which follow.  The
> > introduction is too long for regular SAS footnotes, so is there a
> > better option than the mess below? :)
>
> > Andrew
>
> > /
> > *---------------------------------------------------------------------------
> > */
>
> > data lines;
>
> >   input line & $80.;
> >   datalines;
> > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas
> > congue sagittis convallis. Phasellus ultricies velit suscipit eros
> > sollicitudin a hendrerit tellus scelerisque. Pellentesque lacinia
> > adipiscing sapien at faucibus. Nunc tincidunt imperdiet placerat.
> > Proin nunc sapien, imperdiet commodo dignissim eget, tempus nec
> > libero. Pellentesque tellus est, faucibus et pharetra malesuada,
> > faucibus
> > eu justo. Maecenas luctus pharetra quam, a dignissim nunc dapibus a.
> > Cras tempor consectetur congue. Proin ut purus ipsum. Integer
> > sagittis
> > dapibus faucibus. Pellentesque ac sem eu nunc imperdiet rhoncus. Cras
> > convallis ullamcorper rutrum. Integer ornare tincidunt dapibus. Ut
> > nec
> > lectus vel augue posuere interdum.
>
> > ;
>
> > ods pdf;
>
> > /* introduction */
> > proc print data=lines NOOBS ;run;
> > /* tables and charts would go here */
> > ods pdf close;
>
>

 |  Next  |  Last
Pages: 1 2
Prev: font question
Next: Macro error help