Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL to serach for Multiple String in a PDS or PDSE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
ManojLenkaMainframes

New User


Joined: 22 May 2008
Posts: 14
Location: Chennai,India

PostPosted: Mon Feb 02, 2009 2:28 pm    Post subject: JCL to serach for Multiple String in a PDS or PDSE
Reply with quote

Dear Team,

Can any one of you forward me a JCL to search for multiple strings in a PDS or PDSE.

Example as below:

I want to find " INSERT INTO TABLE TBLNM" in one PDS.

If I will submit the JCL it will show me all the members containing " INSERT" , " INTO " , " TABLE "and "TBLNM" . The four strings can be present in single row as below:

"INSERT INTO TABLE TBLNM""

OR

in multiple rows as below:

"INSERT INTO"
"TABLE TBLNM""

Thanks
Manoj
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10257
Location: italy

PostPosted: Mon Feb 02, 2009 2:45 pm    Post subject: Reply to: JCL to serach for Multiple String in a PDS or PDSE
Reply with quote

ISPF SRCHFOR
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Mon Feb 02, 2009 3:35 pm    Post subject:
Reply with quote

Hi Manoj...As told by Enrico..you can search multiple strings in ISPF Search option ,that is 3.14 and select option for multiple strings..





Thanks,
Abhishek
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Feb 02, 2009 5:20 pm    Post subject:
Reply with quote

Hi,

Try using
Code:
SRCHFOR  'INSERT INTO'
SRCHFOR  'TABLE TBLNM' 
SRCHFOR  'whatever'   
.
.
in batch ISPF SRCHFOR.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Feb 02, 2009 5:21 pm    Post subject:
Reply with quote

Hi,

Here is one similar post. Click on this text
Back to top
View user's profile Send private message
ManojLenkaMainframes

New User


Joined: 22 May 2008
Posts: 14
Location: Chennai,India

PostPosted: Mon Feb 02, 2009 5:31 pm    Post subject: Reply to: JCL to serach for Multiple String in a PDS or PDSE
Reply with quote

Thank you Abhisek, Anju and Enrico,

As suggested by Anju

Is it possible to put three strings in SRCHFOR

I see only one line as in the attachment.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Feb 02, 2009 5:37 pm    Post subject:
Reply with quote

Hello,

It's Anuj not Anju.. icon_evil.gif .. icon_evil.gif
Quote:
I see only one line as in the attachment.
what attachment you are talking about here.. icon_neutral.gif

Quote:
Is it possible to put three strings in SRCHFOR
Did you notice this:
Code:
SRCHFOR  'INSERT INTO'
SRCHFOR  'TABLE TBLNM' 
SRCHFOR  'whatever'   
.
.
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Mon Feb 02, 2009 6:01 pm    Post subject:
Reply with quote

Hi Manoj...

Anuj.. I guess Manoj has chosen ISPF 3.14 option and has not chosen the Multiple strings option ,thats why he is getting a single string serch line.

Manoj...please chose the Multiple String option you can see the option at the bottom of your Mainfreme screen in 3.14 option.
Else, try the JCL referred by Anuj in this post.




Thanks,
Abhishek
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us