I am trying to retrieve the user-id of the person who submitted a job. In my Natural program I use *USER, but it returns the JOBNAME and not the user-id of the person who submitted the job.
How can I get the program to return the user-id?
Take a look in the Parameters Reference document, OSP parameter, USERID subparameter. You should be able to get the user ID in the *INIT-USER system variable.
Thanks, but the *INIT-USER and *NET-USER also return the Jobname. It seems our administrator changed some of the parameters (somewhere) so that *USER, *NET-USER, *INIT-USER (and maybe others as well) return a Jobname instead of the user-id of the person who submitted the job.
The content of *INIT-USER depends on the setting of the OSP parameter (or NTOSP macro).
The default OSP=(USERID=OFF) gives you the job name.
OSP=(USERID=ON) gives you the user ID.
Where do I change this parameter value? (How do I do it?)
This will depend on your Natural Security settings and how your Natural PROC is constructed.
//NATURAL EXEC NATBT,PARM='AUTO=OFF,OSP=(USERID=ON)'
//CMPRINT DD SYSOUT=*
//CMSYNIN DD *
I thank you so very very much.