Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to extract the USer ID from SAR using SARBCH

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
dibyojyoti

New User


Joined: 16 Jun 2008
Posts: 2
Location: Chennai, india

PostPosted: Fri Dec 24, 2010 5:53 pm    Post subject: How to extract the USer ID from SAR using SARBCH
Reply with quote

HI I am using SARBCH to extract SAR listing of jobs using the below sysin

/DBASE NAME=<ca7 log name>
/LIST ID=jobname*

but as the length of the output is only 133 bytes I am not able to get the USER ID info for a set of jobs. can any one give me a clue, is it possible using SARBCH or i need any other utility?
Back to top
View user's profile Send private message

vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1521
Location: Chennai

PostPosted: Mon Dec 27, 2010 2:28 pm    Post subject:
Reply with quote

Hi,

After you get the SAR extract from SARBCH,
The SAR extract has the USER id who submitted the job, 2nd next to the word 'IRR010I '

You could use a job to get the 2nd word next to 'IRR010I ' word from the SAR extract.

Or am I missing something on ur requirement?

Code:
********************************* TOP OF DATA *************************
                   J E S 2  J O B  L O G  --  S Y S T E M  X Y Z A  --
                                                                       
03.07.26 JOB05194 ---- THURSDAY,  23 DEC 2010 ----                     
03.07.26 JOB05194  IRR010I  USERID ABCDEFG  IS ASSIGNED TO THIS JOB. 
Back to top
View user's profile Send private message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Tue Dec 28, 2010 10:16 am    Post subject: Reply to: How to extract the USer ID from SAR using SARBCH
Reply with quote

hi vasanth,

just a quick question, is the word 'IRR010I ' a standard...i guess it may vary from shop to shop..isnt it ?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Dec 28, 2010 10:23 am    Post subject:
Reply with quote

Hello,

What does the same first part of the sysout show from a SARBCH run on your system?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10310
Location: italy

PostPosted: Tue Dec 28, 2010 2:01 pm    Post subject: Reply to: How to extract the USer ID from SAR using SARBCH
Reply with quote

sorry to disagree on the IRR010I advice
( not me personally, zOS disagrees )

quoting the messages and manual

Quote:
IRR010I USERID userid IS ASSIGNED TO THIS JOB.

Explanation: The user did not specify the USER parameter on the job card.
System Action: The submitting user's user ID is assigned to this job. (This is normal for user ID propagation.) Processing continues. This message goes only to the job log.

User Response: None.


in general it is impossible to find who submitted the job
the only thing MVS ( and security packages ) care is the ID on the job card

if the job card has the USER parameter specified You will not get the message
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1521
Location: Chennai

PostPosted: Tue Dec 28, 2010 9:36 pm    Post subject:
Reply with quote

Thanks for correcting and the additional useful info enrico.

Regards,
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm
No new posts What is the Extract Function in JCL dharmaraok JCL & VSAM 3 Wed Jun 14, 2017 9:12 am
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us