I have a PS file of FB 200 and I am using SAS (9.4) in JCL to create PDF. Below code I used in JCL.
//SAS.SYSIN DD *
OPTIONS NOERRABEND;
DATA X;
INFILE IN;
INPUT @1 NAME $128.;
RUN;
FILENAME OUTPDF 'TEST.SAS.PDF' DISP=MOD;
ods _all_ close;
ods pdf file='test.sas.pdf';
PROC PRINT DATA=X;
RUN;
ODS PDF CLOSE;
the job is giving return code 08 with SAS log statements as below.
I am unable to figure out what is the error in the statement.
NOTE: The address space has used a maximum of 1052K below the line and 29596K above the line.
2 The SAS System
6 FILENAME OUTPDF 'TEST.SAS.PDF' DISP=MOD;
7
8 ods _all_ close;
9 ods pdf file='test.sas.pdf';
ERROR: .
10 PROC PRINT DATA=X;
11 RUN;
NOTE: Due to ERROR(s) above, SAS set option OBS=0, enabling syntax check mode.
This prevents execution of subsequent data modification statements.
NOTE: The PROCEDURE PRINT used 0.00 CPU seconds and 37787K.
Try using your FILEREF rather than the actual file name:
ods pdf file=outpdf;
np.. I changed the code to use FILREF. Still getting same error
Code
//SAS.SYSIN DD *
OPTIONS NOERRABEND;
FILENAME OUTPDF 'TEST.SAS.PDF' DISP=MOD;
DATA X;
INFILE IN;
INPUT @1 NAME $126.;
RUN;
ods _all_ close;
ods pdf file=OUTPDF;
PROC PRINT DATA=X;
RUN;
ODS PDF CLOSE;
Error
NOTE: The address space has used a maximum of 1052K below the line and 29596K above the line.
7
8 ods _all_ close;
9 ods pdf file=OUTPDF;
ERROR: .
10 PROC PRINT DATA=X;
11 RUN;
Hi. Do you have the ability to review the full output from your process? Or can you provide the full JCL you are using? As a small guide, when I generate PDF's in the IBM Z/os environment I use the following DD....
//PDFFILE DD DSN=FIPP.I.DAILY.NAG,
// DISP=(,DELETE,DELETE),
// SPACE=(TRK,(100,10),RLSE)
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.