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

How to Match the files with the corresponding jobs in batch


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
skkp2006

New User


Joined: 14 Jul 2006
Posts: 93
Location: Chennai,India

PostPosted: Tue Jan 20, 2009 1:37 pm
Reply with quote

I am having a list of files(say 500 of them) and another list of 100 jobs. Now i need to find out which jobs are using these files. We have the cross reference information module in our shop but for manually search all the 500 of them is really time consuming.

Is there any other go like LISTCAT to find the matching jobs ? Any pointers wil be really helpful...

Syam
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jan 20, 2009 2:22 pm
Reply with quote

Hi,

ISPF 3.14 option is not useful here ?
Back to top
View user's profile Send private message
skkp2006

New User


Joined: 14 Jul 2006
Posts: 93
Location: Chennai,India

PostPosted: Tue Jan 20, 2009 2:47 pm
Reply with quote

Quote:
ISPF 3.14 option is not useful here ?


then i will have to search 500 times in the JCL pds right? and to add to that the first level qualifier is symbolic here. Is there any other go ?


Syam
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jan 20, 2009 2:57 pm
Reply with quote

Hi,

Porbably no - Do you have this list
Quote:
another list of 100 jobs
in a single PDS ?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jan 20, 2009 3:08 pm
Reply with quote

Quote:
We have the cross reference information module in our shop but for manually search all the 500 of them is really time consuming.

Sometimes, there just isn't an easy option.

Been there, seen it, done it and also moaned about it icon_sad.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jan 20, 2009 3:08 pm
Reply with quote

Hello,

Can you use something like: Change the string in SRCHFOR with the files you want to search & string in SELECT with the JOB names...just a JCL from 3.14 & modified for my needs.
Code:
//SEARCH  EXEC PGM=ISRSUPC,                                           *
//            PARM=(SRCHCMP,                                           
//            'ANYC')                                                   
//NEWDD  DD DSN=XXXX.XXXXXX.JCLLIB,                             
//          DISP=SHR                                                   
//OUTDD  DD DSN=XXXXXX.FIANLIST.PROC.JOB,DISP=(,CATLG,CATLG)           
//SYSIN  DD *                                                           
SRCHFOR 'AGPROIND,AGPROIND'                                             
SRCHFOR 'AGPROFLG,AGPROIND,AGRTRPRT,AGSETA,AGSETP,AGSETT,KOD505,LCD160'
SRCHFOR 'LCD160W,LFUSDA30,LFUSDA4P,LFUSDA40,LFUSDA50,LFUSDA60,LFUSDB40'
SRCHFOR 'LFUSDE30,LFUSDN30,LFUSDT30,LFUSIA90,LFUSIB90,LFUSIC90,LGGFDA60'
SRCHFOR 'LGUADA40,LGUADD40,LGUFDD40,LGUGDD40,LGUJDA40,LGUKDC40,LGUKDC41'
SRCHFOR 'LGULDC41,LGUSDA40,LGUSDA41,LGUSDA42,LGUSDA50,LGUSDA60,LGUSDA61'
SRCHFOR 'LGUSDB40,LGUSDB41,LGUSDD40,LGUUDA41,LGUXDA42,MBD110K,NJUSW25' 
SRCHFOR 'PFUSI30,PF0KM028,QLC400,QLD145,QLD145,QLD150,QLD175,QLD400'   
SRCHFOR 'QLD400T,QLI151,QLW200,QLW230,QLW300,QLW301,WN0KD010'           
SELECT $JTWTEMP,@ESFDR,@JTJEGJB,@JTWCMPA,@JTWCMPC,@JTWCOMP             
SELECT @PRINT,ABD00000,ABD10000,ABM13000,ABM20XCM,ABM20000             
SELECT ABM60000,ABM61000,ABM62000,ABRT4700,ABR11000,ABR12000           
SELECT ABR13000,ABR13001,ABR19000,ABR21000,ABR23000,ABR25000           
SELECT ABR26000,ABR27000,ABR29000,ABR40000,ABR40500,ABR41000           
SELECT ABR42001,ABR42002,ABR43000,ABR43600,ABR44000,ABR44300           
/*
Back to top
View user's profile Send private message
skkp2006

New User


Joined: 14 Jul 2006
Posts: 93
Location: Chennai,India

PostPosted: Tue Jan 20, 2009 3:17 pm
Reply with quote

Thanks Anuj...

finally i also did the same thing.... created all the SRCHFOR and SELECT control statements and ran the job. icon_cry.gif


i was looking for something like

Code:
some command "dataset name" job
o/p
the job name


Quote:
Sometimes, there just isn't an easy option.
Been there, seen it, done it and also moaned about it


same here..... icon_rolleyes.gif



syam
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
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 How to create a list of SAR jobs with... CA Products 3
Search our Forums:

Back to Top