IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

finding the submitter of a batch job


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
george botsios

New User


Joined: 26 Aug 2008
Posts: 3
Location: athens, greece

PostPosted: Thu Aug 28, 2008 6:00 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 28, 2008 6:20 pm
Reply with quote

Code:

SAY 'USER ID           = ' SYSVAR(SYSUID)
Back to top
View user's profile Send private message
george botsios

New User


Joined: 26 Aug 2008
Posts: 3
Location: athens, greece

PostPosted: Thu Aug 28, 2008 7:29 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 28, 2008 8:41 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Aug 28, 2008 10:14 pm
Reply with quote

If the submitter is important, perhaps you can enforce that a user can only submit jobs with themselves as owners.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Sep 03, 2008 2:27 am
Reply with quote

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
View user's profile Send private message
george botsios

New User


Joined: 26 Aug 2008
Posts: 3
Location: athens, greece

PostPosted: Thu Sep 04, 2008 4:48 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Sep 04, 2008 5:26 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
Search our Forums:

Back to Top