|
|
| Author |
Message |
george botsios
New User
Joined: 26 Aug 2008 Posts: 3 Location: athens, greece
|
|
|
|
Hi!
i need to know the submitter of a batch job within a rexx script that runs under that batch job. (it's supposed that the submitter is different from the owner of the batch job). |
|
| Back to top |
|
 |
References
|
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3744 Location: Brussels once more ...
|
|
|
|
| Code: |
SAY 'USER ID = ' SYSVAR(SYSUID)
|
|
|
| Back to top |
|
 |
george botsios
New User
Joined: 26 Aug 2008 Posts: 3 Location: athens, greece
|
|
|
|
hi again,
the submitter of the job is different from the owner of the job, but i need to know the submitter (the result of function 'sysvar(sysuid)' is the owner of the job). Any idea how to get the submitter of the job?
expat thanks for your reply
best regards
george |
|
| Back to top |
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 1182 Location: Atlanta, GA
|
|
|
|
| Job submitter might be in one of the MVS data blocks although I wouldn't be surprised to find it's not there. The system doesn't really care who submitted the job, just who owns it (for security access) and what the job is doing (for resource management). |
|
| Back to top |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 635 Location: work
|
|
|
|
| If the submitter is important, perhaps you can enforce that a user can only submit jobs with themselves as owners. |
|
| Back to top |
|
 |
Bill Dennis
Senior Member
Joined: 17 Aug 2007 Posts: 334 Location: Iowa, USA
|
|
|
|
I have seen the TSO Submit exit IKJEFF10 used to grab the ID of the current TSO user and insert on a comment card into the submitted JCL.
George,
expat's example of the SYSUID value will be the person doing the submit under TSO. In most cases this is the RACF OWNER as well. Are your jobs being submitted via some non-TSO method? |
|
| Back to top |
|
 |
george botsios
New User
Joined: 26 Aug 2008 Posts: 3 Location: athens, greece
|
|
|
|
the job submitted via SUB command.
the situation is the following
1. userid of edit session is 'botsios'
2. the job card of the submitted job is
//boo job (000),botsios,owner=tsinos,.........
3. after the submittion: although the submitter is 'botsios' the owner of the job is 'tsinos'. During the execution of the job i need to know the submitter (the value of sysuid function is 'tsinos' which is the owner).
thanks again |
|
| Back to top |
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 1182 Location: Atlanta, GA
|
|
|
|
| Unless an exit is coded as Bill suggested, I can't see you finding this information while the job is running. The system simply doesn't care who submitted the job, but rather who owns the job. |
|
| Back to top |
|
 |
|
|