Search a string in different libraries



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Search a string in different libraries

Postby Chits » Tue Feb 11, 2014 4:45 pm

Hello,

My requirement is to search a string 'ABCXXXX'in different libraries/or PDS (like JCLLIB,
PROCLIB etc.)
And want to display this in spool or flat file in some format. For e.g.
SEARCH.PNG
You do not have the required permissions to view the files attached to this post.
Chits
 
Posts: 8
Joined: Wed Oct 02, 2013 12:26 am
Has thanked: 0 time
Been thanked: 0 time

Re: Search a string in different libraries

 

Re: Search a string in different libraries

Postby NicC » Thu Feb 13, 2014 12:55 pm

Quick answer: you cannot with JCL alone. You can use SRCHFOR in batch and then write a program to convert the output to what you want. (You may be able to manipulate the output using your sort product but I am not sure on this.)
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post