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
 
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

Moderator


Joined: 14 Mar 2007
Posts: 10472
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 Splitting one row into multiple Rows ... Rajan Moorthy DFSORT/ICETOOL 9 Mon May 14, 2018 10:58 pm
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm
No new posts Using multiple routines at exit 6 in ... Randy Horowitz All Other Mainframe Topics 2 Sat Feb 10, 2018 11:57 pm

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