Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Search for a string in many PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
KARTHIGADEVI

New User


Joined: 07 Sep 2017
Posts: 3
Location: Singapore

PostPosted: Fri Sep 08, 2017 2:32 pm    Post subject: Search for a string in many PDS
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

Moderator


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

PostPosted: Fri Sep 08, 2017 3:04 pm    Post subject: Re: Search for a string in many PDS
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: 3
Location: Singapore

PostPosted: Fri Sep 08, 2017 3:51 pm    Post subject: Reply to: Search for a string in many PDS
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: 683
Location: Pennsylvania

PostPosted: Fri Sep 08, 2017 4:36 pm    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 1788
Location: NY,USA

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

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

New User


Joined: 07 Sep 2017
Posts: 3
Location: Singapore

PostPosted: Mon Sep 11, 2017 1:33 pm    Post subject: Thanks all
Reply with quote

http://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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm
No new posts change string before sertan string anatol DFSORT/ICETOOL 8 Tue Aug 15, 2017 5:43 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us