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 Utility for search operation Gopalakrishna551 TSO/ISPF 11 Wed Jan 03, 2018 11:07 am
No new posts TBSARG - Deleting the search criteria... ISPFHerc TSO/ISPF 6 Thu Dec 14, 2017 8:18 am
No new posts Formatting using DFsort Guru Nandu DFSORT/ICETOOL 5 Thu Nov 30, 2017 7:33 am
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am

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