BookmarkSubscribeRSS Feed
kris001
Calcite | Level 5

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.

3 REPLIES 3
SASKiwi
PROC Star

Try using your FILEREF rather than the actual file name:

ods pdf file=outpdf;
kris001
Calcite | Level 5

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;

LionelT
Obsidian | Level 7

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)

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 563 views
  • 0 likes
  • 3 in conversation