SAS can create a PDF file in a PS file as well as HFS and PDSE.  I think 
there was a restriction at one time, but not as of SAS 9.1.3.

Sample JCL:

=====
//PDF JOB XXXXXX,'EMAIL PDF',NOTIFY=&SYSUID,
//          MSGCLASS=X,CLASS=S
//*
/*ROUTE PRINT FETCH
//*
//DELETE   EXEC PGM=IEFBR14
//ODSPDF    DD DSN=&SYSUID..ODS.PDF,DISP=(MOD,DELETE,DELETE),
//             UNIT=VIO,SPACE=(1,(1,1))
//*
//STEPNAME EXEC SASPROD
//ODSPDF    DD DSN=&SYSUID..ODS.PDF,DISP=(NEW,CATLG,CATLG),
//             UNIT=SYSDA,SPACE=(80,(1000,1000),RLSE),
//             LRECL=8196,RECFM=VB,BLKSIZE=0
//SYSIN DD *,DLM='!!'

/* Send output to PDF */
options orientation=landscape;
ods pdf file=odspdf style=sansprinter notoc;
ods listing close;

/* Add a title with colors */
title j=left   c=black 'A Simple PDF'
      j=center c=red   'With some titles'
      j=right  c=green 'At the top';

/* Create output */
proc print data=sashelp.prdsale (obs=20) noobs;
   var country region division prodtype product
       year quarter month actual predict;
   sum actual predict;
run;

/* Close ODS destination */
ods pdf close;

!!
=====

I like to restrict the location of the filename to the JCL, so I don't 
accidentally change it in one place but not another, but the file 
allocation can also be done using SAS FILENAME statements.

I agree with the earlier post who thinks that distributing the resulting 
PDF file through the SAS email engine is the way to go; in that case, 
you'll need to use the SAS filename option CLOSE=FREE to cause the file to 
be catalogued before the step is over, or use a separate step for email, 
or allocate it differently.



--
Jack Hamilton
Management Information & Analysis - Analytic Information Services
Kaiser Foundation Health Plan, Inc.
1950 Franklin Street, Oakland, California 94612
+1 510 987-1556 (KP tieline 8-427-1556)

NOTE:  This email document and attachments are covered by CA Evidence Code 
§1157 and CA Health and Safety Code §1370.

NOTICE TO RECIPIENT:  If you are not the intended recipient of this 
e-mail, you are prohibited from sharing, copying, or otherwise using or 
disclosing its contents.  If you have received this e-mail in error, 
please notify the sender immediately by reply e-mail and permanently 
delete this e-mail and any attachments without reading, forwarding or 
saving them.  Thank you.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to