View previous topic :: View next topic |
Author |
Message |
acceleuterio@gmail.com Beginner
Joined: 17 Feb 2023 Posts: 3 Topics: 1
|
Posted: Thu Feb 23, 2023 10:57 am Post subject: ISRSUPC, only member names |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Thu Feb 23, 2023 4:00 pm Post subject: |
|
|
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
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
acceleuterio@gmail.com Beginner
Joined: 17 Feb 2023 Posts: 3 Topics: 1
|
Posted: Fri Feb 24, 2023 5:28 am Post subject: |
|
|
thanks for the reply, but i have to use a BATCH with ISRSUPC |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Fri Feb 24, 2023 4:16 pm Post subject: |
|
|
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
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
acceleuterio@gmail.com Beginner
Joined: 17 Feb 2023 Posts: 3 Topics: 1
|
Posted: Mon Feb 27, 2023 2:28 pm Post subject: |
|
|
OTTIMO!
grazie |
|
Back to top |
|
 |
|
|