Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Listing all members with pattern *DCP* in PDS?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
UmeySan

Senior Member


Joined: 22 Aug 2006
Posts: 625
Location: Germany

PostPosted: Fri Jun 27, 2008 12:01 pm    Post subject:
Reply with quote

@sril.krishy & karthikr44 :

Using Syncsort, Pgm must be SYNCTOOL
Back to top
View user's profile Send private message
References
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1508

PostPosted: Sat Jun 28, 2008 6:20 pm    Post subject:
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 1966
Location: Israel

PostPosted: Sun Jun 29, 2008 1:28 am    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8752
Location: 221 B Baker St

PostPosted: Sun Jun 29, 2008 3:29 am    Post subject:
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 1966
Location: Israel

PostPosted: Sun Jun 29, 2008 10:48 am    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8752
Location: 221 B Baker St

PostPosted: Sun Jun 29, 2008 1:50 pm    Post subject: Reply to: Listing all members with pattern *DCP* in PDS?
Reply with quote

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 . . . icon_smile.gif

If the "*DCP*" is changed to "DCP" the search returns everything that matches - kinda like a "pattern". It is just not called a pattern icon_wink.gif

d
Back to top
View user's profile Send private message
sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 162
Location: hyderabad

PostPosted: Sun Jun 29, 2008 11:27 pm    Post subject: Reply to: Listing all members with pattern *DCP* in PDS?
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1508

PostPosted: Tue Jul 01, 2008 7:12 am    Post subject:
Reply with quote

Oops! I misread the OP.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 HoursGoto page Previous  1, 2
Page 2 of 2