How to search for a string in multiple data sets?

JES2/3, JCL, utilities.
Post Reply
Prem_mainframe
New Member
Posts: 6
Joined: Fri Jan 17, 2014 2:04 pm

How to search for a string in multiple data sets?

Post by Prem_mainframe »

Hi,

Suppose there are so many datsets with high level qualifier abc123.* . I want to search all the data sets starting with abc123. How we can do this? is it possible to do with FILEAID BATCH or any other tool ?
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: How to search for a string in multiple data sets?

Post by William Collins »

Why do you want to do that? It'll take a lot of resources. Why don't you know where what you want is, with a littler more certainty?
Prem_mainframe
New Member
Posts: 6
Joined: Fri Jan 17, 2014 2:04 pm

Re: How to search for a string in multiple data sets?

Post by Prem_mainframe »

I'm doing an impact analysis and want to see at how many plaaces a particular file is used? And also want to find at how many places a term "merchant" is used.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: How to search for a string in multiple data sets?

Post by zprogrammer »

1.Probably you create a REXX to get the list of dataset and search them
zprogrammer
User avatar
prino
Registered Member
Posts: 68
Joined: Sun Jun 01, 2014 4:15 am
Location: Vilnius, Lithuania
Contact:

Re: How to search for a string in multiple data sets?

Post by prino »

DSLIST 'abc123.*'

followed, on the resulting ISPF 3.4 listing

SRCHFOR 'merchant'
Robert AH Prins
robertahprins @ the.17+Gb.Google thingy
Some z/OS code here
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”