View previous topic :: View next topic
|
Author |
Message |
ManojLenkaMainframes
New User
Joined: 22 May 2008 Posts: 14 Location: Chennai,India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
ISPF SRCHFOR |
|
Back to top |
|
|
abhishek dadhichi
New User
Joined: 19 Apr 2007 Posts: 37 Location: Bangalore
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Try using
Code: |
SRCHFOR 'INSERT INTO'
SRCHFOR 'TABLE TBLNM'
SRCHFOR 'whatever'
.
. |
in batch ISPF SRCHFOR. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
ManojLenkaMainframes
New User
Joined: 22 May 2008 Posts: 14 Location: Chennai,India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hello,
It's Anuj not Anju.. ..
Quote: |
I see only one line as in the attachment. |
what attachment you are talking about here..
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 |
|
|
abhishek dadhichi
New User
Joined: 19 Apr 2007 Posts: 37 Location: Bangalore
|
|
|
|
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 |
|
|
|