Help using Base SAS procedures

JCL

Reply
N/A
Posts: 0

JCL

I am trying to run the sample sas code in JCL to check if it runs , but after executing it just says "SAS job executed" but dont see the log and code that got executed.
I am pasting the Code here for your reference please let me know, if there is any thing missing.

//SASJOB JOB UP20
//TESTSAS EXEC SAS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
proc setinit;
run;
//

Thanks you for your earliest attention.

Regards,
Kenny G
Super Contributor
Super Contributor
Posts: 3,174

Re: JCL

First, you have no MSGCLASS= keyword on your JOB statement, so it is undetermined where your entire job-output is being directed, possibly it is "purged" immediately after execution? You will need to identify a MSGCLASS= value (alphanumeric) to assign so you can inspect your output "online".

Also, unless our SAS site has made CONFIG changes, the SYSPRINT DD will not receive the SAS log output. You should inspect your SAS JCL PROC for a DD named SASLOG. A SYSOUT= keyword is normally coded there -- you will need to verify that this parameter has a value assigned so you can inspect your job output "online".

Suggest you seek guidance/assistance from someone familiar with running batch jobs and using an output viewing facility at your IBM mainframe site.

Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 1 reply
  • 154 views
  • 0 likes
  • 2 in conversation