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.
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.