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

Search for a string in many PDS


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
KARTHIGADEVI

New User


Joined: 07 Sep 2017
Posts: 4
Location: Singapore

PostPosted: Fri Sep 08, 2017 2:32 pm
Reply with quote

Hi Folks,

I want to search for a specific string in more than one PDS libraries. Is there any way in Mainframes for this purpose, like 3.14 option?
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Fri Sep 08, 2017 3:04 pm
Reply with quote

KARTHIGADEVI wrote:
Is there any way in Mainframes for this purpose, like 3.14 option?


There are ways but unless you explain what is your problem statement , Chances of getting best or better replies are slim
Back to top
View user's profile Send private message
KARTHIGADEVI

New User


Joined: 07 Sep 2017
Posts: 4
Location: Singapore

PostPosted: Fri Sep 08, 2017 3:51 pm
Reply with quote

Yes Pandora. I have some 50 PDS libraries. I want to check if a string, for example "record" is present in any of the members in those PDS libraries.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Fri Sep 08, 2017 4:36 pm
Reply with quote

You can use Option 3.15

Choose Execution Mode of batch:
Code:
                          Extended Search-For Utility
 Command ===>

 Search DS Name  . . MY.FIRST.PDS
 PDS Member List . . *         (blank/pattern - member list, * - search all)

 (Leave Search DSN "blank" for concatenated-uncataloged-password panel)

 Enter Search Strings and Optional operands (WORD/PREFIX/SUFFIX,C)
    Caps . .
    Caps . .
    Caps . .
    Asis . . STRINGTOFIND
    Asis . .

 Listing DSN . . . . ACP.SRCHFOR.LIST
 Process Options . . ANYC,IDPFX,LONGLN
 Statements Dsn  . .

 Enter "/" to select option      Execution Mode          Output Mode
 /  Bypass selection list        2  1. Foreground        1  1. View
                                    2. Batch                2. Browse


On next screen select to edit JCL

Code:
                    Search-For Utility - Submit Batch jobs
Command ===>

Press ENTER to continue submit

Enter "/" to select option                   Generate Output Type:
/  Edit JCL before user submit               1  1. SYSOUT Class
                                                2. Data Set Name
                                                3. //OUTDD DD
SYSOUT Class . . . . Z


Now add your additional datasets to NEWDD DD

Submit Job. Save your JCL to your own pds for future use.

Your results in SYSOUT will have the dataset concatenation position in parens.

Give it a try before asking more questions.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Fri Sep 08, 2017 8:50 pm
Reply with quote

Or spend a little time to do search on internet first.
ibmmainframes.com/about10653.html
Back to top
View user's profile Send private message
KARTHIGADEVI

New User


Joined: 07 Sep 2017
Posts: 4
Location: Singapore

PostPosted: Mon Sep 11, 2017 1:33 pm
Reply with quote

ibmmainframes.com/about10653.html - this link by Rohit was useful. 3.4 is easier than 3.15 icon_smile.gif
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts file manager is doing string conversion IBM Tools 3
No new posts first column truncated in search result IBM Tools 13
Search our Forums:

Back to Top