View previous topic :: View next topic
|
Author |
Message |
shikhagupta33
New User
Joined: 11 Apr 2005 Posts: 7 Location: Bangalore
|
|
|
|
Hi,
I am using 3.14 option in Batch mode. I have list of 100 procs to be searched in JCLLIB pds. I.e. I want to get list of Jobs which are executing these procs. My list is there in a file like below.
proc001
proc002
proc003
-----
-----
proc100
Now I want to get my list as below
srchfor 'proc001'
srchfor 'proc002'
scrchfor 'proc003'
-------------------
-------------------
srchfor 'proc100'
For this I want to use sort utility's outrec to get my i/p file modified and give output like as I wanted.
So that I can use my o/p file to be input to my bacth mode of option 3.14
Please help. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Shikha,
You can use a DFSORT job like the following to do what you asked for:
Code: |
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FB)
//SORTOUT DD DSN=... output file (FB/80)
//SYSIN DD *
OPTION COPY
INREC BUILD=(C'srchfor ''',1,7,C'''',80:X)
/*
|
|
|
Back to top |
|
|
shikhagupta33
New User
Joined: 11 Apr 2005 Posts: 7 Location: Bangalore
|
|
|
|
Thank you for the resolution. It worked. |
|
Back to top |
|
|
|