SAS on mainframe

Reply
Super Contributor
Posts: 267

SAS on mainframe

[ Edited ]

Hello,

I have question runing SAS on mainframe,but I am not sure what category of the topic belongs to for my question, so I choose General question as a Location,if you know please tell me.thanks.

 

My SAS question on mainframe is :

 Is there an auto variable like &SYSDATE or &SYSJOBID. that can show the current JCL job file's full name in SAS log?

i.e. the current full job file is "user.research.pds(test1)". I want call an auto variable in the curent program to show that in SAS log.I am not sure there was such an auto variable,please advise.

 

Thank you!

Super User
Posts: 6,624

Re: SAS on mainframe

Posted in reply to GeorgeSAS

In non-mainframe environments, I have always used something along these lines:

 

title "Program:  %sysfunc(getoption(sysin))";

 

You can try it on the mainframe to see if it works there.

Super Contributor
Posts: 267

Re: SAS on mainframe

Posted in reply to Astounding
Thank you Astounding,this does not work on mainframe,I think that is an UNIX way.
Super User
Posts: 5,849

Re: SAS on mainframe

Posted in reply to GeorgeSAS
What about &SYSJOBID?
Data never sleeps
Super Contributor
Posts: 267

Re: SAS on mainframe

%sysjpbid is the id of the job, not the job file.

 

Thank you.

Ask a Question
Discussion stats
  • 4 replies
  • 137 views
  • 0 likes
  • 3 in conversation