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
 
Search for a string in PDS using DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Sat Oct 07, 2006 7:52 am    Post subject: Search for a string in PDS using DFSORT
Reply with quote

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

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Sat Oct 07, 2006 12:21 pm    Post subject: Re: Search for a string in PDS using DFSORT
Reply with quote

You need to specify the member name, i.e.:

//SORTIN DD DSN=MYPDS.NAME(MEMBER),DISP=SHR
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Mon Oct 09, 2006 7:52 am    Post subject: Re: Search for a string in PDS using DFSORT
Reply with quote

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

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Mon Oct 09, 2006 8:40 pm    Post subject:
Reply with quote

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

New User


Joined: 11 Oct 2006
Posts: 3

PostPosted: Wed Oct 11, 2006 10:41 pm    Post subject: Search for a string in PDS using DFSORT
Reply with quote

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

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Wed Oct 11, 2006 10:50 pm    Post subject: Re: Search for a string in PDS using DFSORT
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm

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