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

JCL to serach for Multiple String in a PDS or PDSE


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Feb 02, 2009 2:45 pm
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
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

Superior Member


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

PostPosted: Mon Feb 02, 2009 5:20 pm
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

Superior Member


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

PostPosted: Mon Feb 02, 2009 5:21 pm
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
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

Superior Member


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

PostPosted: Mon Feb 02, 2009 5:37 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top