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
 

 

Search String in SDSF.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
avina

New User


Joined: 04 Dec 2007
Posts: 16
Location: Kolkata

PostPosted: Thu Jul 09, 2009 4:54 pm    Post subject: Search String in SDSF.
Reply with quote

Hi Friends,

I have a small problem. I have a series of user-triggered jobs in my SDSF. Each job has the user id who trigerred the job. Each day approx. 100 - 200 jobs are submitted in the SDSF.

My question is incase I've a problem for a particular job for a specified user, how can I search in the spool with the user id to arrive at that job. Usually all the jobs go with the same name. Currently, whenever such a situation happens, I have to go to each and every submitted job and do a show job (SJ) to see the user id, which is something very painful for 100 - 200 jobs a day.


Regards,

Avik.
Back to top
View user's profile Send private message

Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Thu Jul 09, 2009 5:19 pm    Post subject: Reply to: Search String in SDSF.
Reply with quote

Check the OWNER command in SDSF.

If it does not help, and if you can alter the original JCL that is submitted,
then place the userid in the NOTIFY or the Programmer's-name fields.
Then use FILTER in SDSF to display only relevant jobs.

If nothing helps, it's time to think about a "rexx tool"...
Back to top
View user's profile Send private message
avina

New User


Joined: 04 Dec 2007
Posts: 16
Location: Kolkata

PostPosted: Thu Jul 09, 2009 5:25 pm    Post subject:
Reply with quote

Thanks for your reply. But this doesn't help. I want a search utility. These jobs are submitted by the user from the online CICS screens.
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 Jul 09, 2009 5:27 pm    Post subject:
Reply with quote

At the moment, how do you determine which user has submitted which job ?
Back to top
View user's profile Send private message
avina

New User


Joined: 04 Dec 2007
Posts: 16
Location: Kolkata

PostPosted: Thu Jul 09, 2009 5:30 pm    Post subject:
Reply with quote

Now I do a show job in each and every job to see the user id.

I know that you are to help me. Thanks for being there.
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 Jul 09, 2009 5:37 pm    Post subject:
Reply with quote

Does the MAX-RC field show the abend / return code that you are looking for
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jul 09, 2009 5:39 pm    Post subject:
Reply with quote

Quote:
I've a problem for a particular job for a specified user,


how do you know that there is a problem?
Back to top
View user's profile Send private message
avina

New User


Joined: 04 Dec 2007
Posts: 16
Location: Kolkata

PostPosted: Thu Jul 09, 2009 5:42 pm    Post subject:
Reply with quote

In the MAX-RC field the return code is 0. The problem is that this job creates a file which is sent to another system. Whenever the file is not reaching to the other system i have to look into the job for the specific user id.

Please see one sample job as below

//U80A627A JOB 80,FZ,CLASS=W,MSGCLASS=6,
// MSGLEVEL=(1,1)
//* ZEILE WEGEN ABLOESUNG BETA92 EINGEFUEGT (PHT00058/H77) START*
//OUT1 OUTPUT JESDS=ALL,GROUPID=JOINT,DEFAULT=YES,FORMS=JOBL *
//* END *
/* ROUTE PRINT LOCAL
//S0020 EXEC U80A6270,OBJ='FRMHL91',
// USR='UH03969 ',
// AUFTR='0723915',
// DRU=' ',
// KEY='0350166000LMAA001 ',
// ZUS='31712J 1$CF&E/R&D CONTINENTAL ',
// UMG='YES ',
// LAND='GE',
// DSN1='&&TEMP99'
//*** BEREITSTELLEN POST SCRIPT DATASET AUF DISK08
//S0100 EXEC PGM=P98L0318,PARM='U80P.TBSPS,DISK08'
//STEPLIB DD DSN=X.LOADLIB,DISP=SHR
//EIN DD DSN=&&TEMP99,DISP=(OLD,DELETE)
//SYSUDUMP DD SYSOUT=*

User id is UH03969. I want to search the same. Please help.
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 Jul 09, 2009 5:55 pm    Post subject:
Reply with quote

Does the user id form any part of the dataset name that needs to be sent to other system ?
Back to top
View user's profile Send private message
avina

New User


Joined: 04 Dec 2007
Posts: 16
Location: Kolkata

PostPosted: Thu Jul 09, 2009 5:59 pm    Post subject:
Reply with quote

No the file name is generic goes with a date / time stamp.
Back to top
View user's profile Send private message
avina

New User


Joined: 04 Dec 2007
Posts: 16
Location: Kolkata

PostPosted: Thu Jul 09, 2009 6:02 pm    Post subject:
Reply with quote

For your information the file name is like U80P.TBSPS.Date.Tim
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Thu Jul 09, 2009 6:03 pm    Post subject: Reply to: Search String in SDSF.
Reply with quote

If you are running z/OS 1.9 or later, look at the SDSF manuals for the Rexx API interface. The PDF file of the same book is easier to read because you can flip through the examples quickly.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Thu Jul 09, 2009 7:01 pm    Post subject:
Reply with quote

Quote:
These jobs are submitted by the user from the online CICS screens
Quote:
//U80A627A JOB 80,FZ,CLASS=W,MSGCLASS=6,
// MSGLEVEL=(1,1)

Can you ask the CICS programmer that wrote the application to replace, in the JOB card, the useless "FZ" word by the userid ???
Sorry to insist, but that would be really the easiest way to help you.

Otherwise, we're back to the "rexx tool"... (here is another link: Implementing REXX Support in SDSF)

BTW, assuming a user can submit more than one job, how do you know which one is the one with a problem, if they all finish with RC=0?
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 -> IBM Tools 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. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm
No new posts Which function does the Ampersand (&a... Andi1982 PL/I & Assembler 3 Wed Aug 24, 2016 2:05 pm


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