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

Searching for a text in all DSN


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

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Tue Mar 23, 2010 3:21 am
Reply with quote

Hi,

Is there a utility in JCL that will help to search a text in DSNs whereby i only know the upper qualifier...

For example i want to search 'RAJIV' in all DSNs starting from P3453.H5434.**

Of if i can do so on TSO.

Please help me with some JCL if any
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Mar 23, 2010 3:37 am
Reply with quote

There are plenty of utilities that will search for a string (SORT and SUPERC are two examples) but since you're considering a job you'd have to supply the entire list of datasets for either of them to work with first, most likely by using IDCAMS LISTCAT to show all of the cataloged datasets with that indicated high-level qualifier.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Tue Mar 23, 2010 8:44 am
Reply with quote

If you want to do it in TSO (not JCL), see the SRCHFOR command of the ISPF data set list. It will do this in your ISPF session. Or you can cobble together a small Rexx using the ISPF LMDLIST service (or LISTCAT or 'sys1.samplib(iggcsirx)' ) and SuperC or SORT as Kevin alluded to.
Back to top
View user's profile Send private message
raj_mainframe08

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Tue Mar 23, 2010 5:38 pm
Reply with quote

Thank You MBabu. SRCHFOR works for my requirement.
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 TEXT-TO-PDF Compuware & Other Tools 1
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts interactive cics program using CICS s... CICS 5
No new posts Know what color text my variable has ... CICS 5
Search our Forums:

Back to Top