MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ISRSUPC, only member names

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
acceleuterio@gmail.com
Beginner


Joined: 17 Feb 2023
Posts: 3
Topics: 1

PostPosted: Thu Feb 23, 2023 10:57 am    Post subject: ISRSUPC, only member names Reply with quote

Hi,
I want to search a string in a Partitioned Data SET and i just want members name with string inside, no other.

How can i do?

grazie
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12354
Topics: 75
Location: San Jose

PostPosted: Thu Feb 23, 2023 4:00 pm    Post subject: Reply with quote

acceleuterio@gmail.com,


Quite simple.

1. Open the PDS in question in either browse or edit mode
2. Issue the command SRCHFOR at the command prompt and press ENTER. It will prompt you for the options which looks like this (Pay attention to the slash next to "Save output and Filter list". The result of the search is saved in Listing DSN: 'USERID.SRCHML.LIST' My search string is 'abcd'
Code:

Essssssssssssssssssssssss MEMBER LIST Srchfor Options ssssssssssssssssssssssssN
e DSLIST                                                                      e
e Command ===>                                                                e
e                                                                             e
e You are about to search the members of the data set(s) specified.           e
e Specify search string(s) and options and press ENTER to run the search.     e
e Enter the END or the CANCEL command to cancel the search.                   e
e                                                                             e
e   ==> abcd                                                                  e
e   ==>                                                                       e
e   ==>                                                                       e
e   ==>                                                                       e
e   ==>                                                                       e
e   ==>                                                                       e
e                                                                             e
e Listing DSN: 'USERID.SRCHML.LIST'                                           e
e                                                                             e
e Select Process Options with /           Select Output Options with /        e
e    Mixed Mode                              View output                      e
e /  Any case                             /  Save output                      e
e    ASCII                                /  Filter list                      e
e /  Set EDIT FIND string                                                     e
e /  Set BROWSE FIND string                                                   e
DsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssM

_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
acceleuterio@gmail.com
Beginner


Joined: 17 Feb 2023
Posts: 3
Topics: 1

PostPosted: Fri Feb 24, 2023 5:28 am    Post subject: Reply with quote

thanks for the reply, but i have to use a BATCH with ISRSUPC
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12354
Topics: 75
Location: San Jose

PostPosted: Fri Feb 24, 2023 4:16 pm    Post subject: Reply with quote

acceleuterio@gmail.com wrote:
thanks for the reply, but i have to use a BATCH with ISRSUPC


acceleuterio@gmail.com,

well if you looked at the output dataset , you would have noticed the processing options it used

Code:
 PROCESS OPTIONS USED: ANYC NOPRTCC LMTO FMSTOP   


Now use the same in Batch mode.
Code:

//SEARCH1 EXEC PGM=ISRSUPC,PARM=(SRCHCMP,'ANYC NOPRTCC LMTO FMSTOP')
//NEWDD   DD DISP=SHR,DSN=Your.pds.to.be.searched                           
//OUTDD   DD SYSOUT=*                                             
//SYSIN   DD *                                                     
 SRCHFOR  'ABCD'                                                   
/*

_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
acceleuterio@gmail.com
Beginner


Joined: 17 Feb 2023
Posts: 3
Topics: 1

PostPosted: Mon Feb 27, 2023 2:28 pm    Post subject: Reply with quote

OTTIMO!
grazie
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group