Hi Bill and Peter,
I have scoured the SAS knowledge database, but have not had any luck.
I have tried tampering with my email send using the job below....
//STEP4 EXEC SAS,REGION=4M
//SYSIN DD *
FILENAME MYMAIL EMAIL "GDD324@toms.com.au"
TO=("GDD324@toms.com.au")
SUBJECT="Code Reviews etc"
ATTACH=("GDD324.COBOL.LISTING"
NAME="COBOL CODE in text format"
EXT="TXT")
ATTACH=("cobollst/cobollist.pdf"
NAME="COBOL CODE in PDF format"
EXT="PDF")
RUN;
DATA _NULL_;
FILE MYMAIL;
ods listing off;
ods pdf file="cobollst/cobollist.pdf";
proc print;
run;
ods close _all_;
---------------
I get quite a few errors... some of these are:
ERROR: Error in the FILENAME statement.
ERROR 23-2: Invalid option name RUN.
ERROR 22-322: Syntax error, expecting one of the following: EXCLUDE, SE
ERROR 76-322: Syntax error, statement will be ignored.
14 ods pdf file="cobollst/cobollist.pdf";
ERROR: Unable to open filename cobollst/cobollist.pdf. ODS PDF initiali
ERROR: Unable to resolve current directory: UNIX Services MVS: No such file or directory exists. Reason code: 00000000.
ERROR: Physical file does not exist, GDD324.MYMAIL.DATA.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: The DATA statement used 0.03 CPU seconds.
15 proc print;
ERROR: There is not a default input data set (_LAST_ is _NULL_).
16 run;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: The PROCEDURE PRINT used 0.00 CPU seconds.
17 ods close _all_;
ERROR 180-322: Statement is not valid or it is used out of proper order
--------------------------
Still a little confused.... how does my COBOL program get threaded through to the cobollst/cobollist.pdf file? Or will ODS do this automagically?
Thanks for your help!
Steve