DATA Step, Macro, Functions and more

Can I capture the z/OS jobname within a SAS-program?

Reply
N/A
Posts: 0

Can I capture the z/OS jobname within a SAS-program?

I need to be able to intercept the z/OS jobname while my SAS-program is executing. Does anyone have any idea how, or if, I can do this (hard-coding is NOT an option)?
SAS Employee
Posts: 2

Re: Can I capture the z/OS jobname within a SAS-program?

There is a SYSJOBID automatic macro variable.
%put &SYSJOBID;

%put _ALL_; displays all automatic macro variables.
N/A
Posts: 0

Re: Can I capture the z/OS jobname within a SAS-program?

Yep, that's what I needed! Thanks alot, I've been searching/scanning for 2 days trying to find that...
Valued Guide
Posts: 2,175

Re: Can I capture the z/OS jobname within a SAS-program?

there are a number of zOS-job specific things SAS can capture - I found the "programmer name field" from the job card very useful. (passing a small parameter with least risk to the SAS code)

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