Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

finding the submitter of a batch job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: finding the submitter of a batch job
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 28, 2008 6:20 pm    Post subject:
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    Post subject: about: finding the submitter of a batch job
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Thu Aug 28, 2008 8:41 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Aug 28, 2008 10:14 pm    Post subject: Reply to: finding the submitter of a batch job
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    Post subject:
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    Post subject: Reply to: finding the submitter of a batch job
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Thu Sep 04, 2008 5:26 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 5 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us