|
|
| Author |
Message |
UmeySan
Senior Member
Joined: 22 Aug 2006 Posts: 625 Location: Germany
|
|
|
|
@sril.krishy & karthikr44 :
Using Syncsort, Pgm must be SYNCTOOL |
|
| Back to top |
|
 |
References
|
|
 |
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1508
|
|
|
|
Hi,
Sounds like a one shot deal, so you might try this and then edit OUTDD to show only the member names:
| Code: |
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,'ANYC')
//NEWDD DD DSN=yrDSN,
// DISP=SHR
//OUTDD DD DSN=yrDSN,
// DISP=OLD (can be NEW)
//SYSIN DD *
SRCHFOR '*DCP*'
// |
You can search for multi strings:
| Code: |
SRCHFOR '*DCP*',
SRCHFOR '*ABC*',
.
.
.
SRCHFOR '*XYZ*' |
|
|
| Back to top |
|
 |
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 1966 Location: Israel
|
|
|
|
mmwife -
The SRCHFOR statement will look for the string within the members. I believe the O/P wanted to filter the member names.
In addition, the fine manual says nothing about a pattern characters for the SRCHFOR value.
O. |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8752 Location: 221 B Baker St
|
|
|
|
Hello,
| Quote: |
| In addition, the fine manual says nothing about a pattern characters for the SRCHFOR value |
The value specified (without the asterisks) is used as a "pattern" and the entire record is searched for the pattern/value.
| Quote: |
| I believe the O/P wanted to filter the member names |
Mee too  |
|
| Back to top |
|
 |
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 1966 Location: Israel
|
|
|
|
Dick -
| Quote: |
| The value specified (without the asterisks) is used as a "pattern" and the entire record is searched for the pattern/value. |
I double-checked myself now. There is no "pattern" search in SUPERC.
When you specify SRCHFOR *DCP*, SUPERC will look for the string "*DCP*".
O. |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8752 Location: 221 B Baker St
|
|
|
|
Hi O,
| Quote: |
I double-checked myself now. There is no "pattern" search in SUPERC.
When you specify SRCHFOR *DCP*, SUPERC will look for the string "*DCP*".
|
Yup, we're both saying the same thing . . .
If the "*DCP*" is changed to "DCP" the search returns everything that matches - kinda like a "pattern". It is just not called a pattern
d |
|
| Back to top |
|
 |
sril.krishy
Active User
Joined: 30 Jul 2005 Posts: 162 Location: hyderabad
|
|
|
|
| Quote: |
Using Syncsort, Pgm must be SYNCTOOL
|
UmeySan,
SYNCSORT is provided the Synonym option.So,SYNCSORT will be automatically invoked when we code ICETOOL as PGM.
Thanks
Krishy |
|
| Back to top |
|
 |
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1508
|
|
|
|
| Oops! I misread the OP. |
|
| Back to top |
|
 |
|
|