BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

Register Now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1572 views
  • 0 likes
  • 2 in conversation