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

Global Moderator


Joined: 14 Mar 2007
Posts: 10350
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 Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts Updating multiple counts in trailer!! Vignesh Sid SYNCSORT 4 Mon Nov 06, 2017 1:04 pm
No new posts Selecting a row from multiple tables! Vignesh Sid DB2 2 Thu Oct 26, 2017 6:09 pm
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

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