View previous topic :: View next topic
|
Author |
Message |
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Hi,
I tried searching for a string in PDS (just like ISPF SEARCH option). I provided SORTIN as follows -
//SORTIN DD DSN=MYPDS.NAME,DISP=SHR
and
//SORTIN DD DSN=MYPDS.NAME(*),DISP=SHR
I was getting error in SORTIN statement. Sort card was correct (used 'SS').
Can anyone help me in solving this.
Regards,
Murali |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You need to specify the member name, i.e.:
//SORTIN DD DSN=MYPDS.NAME(MEMBER),DISP=SHR |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Thanks SuperK for the reply.
But my requirement is to search in all the members (entire PDS), not a particular member (Just like ISPF search option - 3.14).
I hope my requirement is clear.
Regards,
Murali Mohan K |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
DFSORT can only operate on one member at a time. To search all the members, you would have to specify each one separately. You could do that in one step using ICETOOL with multiple COPY operators, each of which would specify one member. |
|
Back to top |
|
|
bobvilch
New User
Joined: 11 Oct 2006 Posts: 3
|
|
|
|
You did not state what you wanted to do to the members once you executed your sort. Here is a way to find values in all the members of a pds.
If your site has a tool (ie File Master or File Aid) you can enter the values you are searching for and enter the same value for the change (incase you accidentally update). Continuing should display a screen of the values that meet your change after the all members in the pds have been processed. |
|
Back to top |
|
|
MFRASHEED
Active User
Joined: 14 Jun 2005 Posts: 186 Location: USA
|
|
|
|
You can also try ISRSUPC to search for a string in all members of a PDS.
Code: |
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,
// 'ANYC')
//NEWDD DD DSN=xxxx.PDSNAME,
// DISP=SHR
//OUTDD DD SYSOUT=(S)
//SYSIN DD *
SRCHFOR 'Search String'
/*
|
Note: Do not specify (*) etc, just enter full PDS name without member info. |
|
Back to top |
|
|
|