Date: Mon, 30 Apr 2001 08:54:42 -0500
Reply-To: Sterling Price <ssprice@WAL-MART.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Sterling Price <ssprice@WAL-MART.COM>
Subject: Re: Programmer Name
Content-Type: text/plain
Dan,
I don't know of a way to get the actual programmer ID from the job step, but
a possible workaround might be to pass it in using SYSPARM, like this:
//STEP01 EXEC SAS607,OPTIONS='SYSPARM="SSPRICE"'
//SASLOG DD SYSOUT=*
//SASLIST DD SYSOUT=*
//SYSIN DD *
%PUT &SYSPARM;
Where it says "SSPRICE", you would change it to the programmer name from
your job card. Kind of a hassle though, because you have to remember to
change the SYSPARM value whenever the programmer in the job card changes.
It would be nice if you could use a symbolic parameter from a JCL SET
statement (at least that way you'd only have to change it in one place to
change multiple steps in the job), but I tried it and couldn't get it to
work.
In case I misunderstood and you were actually wanting the ID of the person
who submitted the job (not necessarily the ID from the job step), you don't
even have to use SYSPARM - just use &SYSUID in the SAS code (6.08, TS425 &
later).
HTH,
Sterling Price
> -----Original Message-----
> From: Sterling Price
> Sent: Monday, April 30, 2001 8:40 AM
> To: Sterling Price
> Subject:
>
> Date: Sat, 28 Apr 2001 17:38:10 +0100
> From: Dan Welch <daniel@WELCHONLINE.FSNET.CO.UK>
> Subject: MVS: Programmer Name
>
> Hi,
>
> Is there a variable, like &SysJobID, that will allow me to insert the
> programmer name from the JCL Job step into my SAS code? If not, is there
> any
> other way?
>
> Cheers, Dan Welch
>
>
>
> [WAL-MART Confidential]
>
**********************************************************************
This email and any files transmitted with it are confidential
and intended solely for the individual or entity to
whom they are addressed. If you have received this email
in error destroy it immediately.
**********************************************************************
|