Hi,
Is there a way using batch SRCHFOR on a PDS to find only those members where the string was NOT found? I know how to create the JCL with SRHFOR to find the members where string was found but not other way round?
have anyone tried this and know it, please guide.
SRCHFOR to list members where 'search string' is not found.
Moderator: mickeydusaor
- CountryDelight
- Registered Member
- Posts: 12
- Joined: Sun Aug 08, 2021 4:19 pm
Re: SRCHFOR to list members where 'search string' is not found.
I think you cannot do this. You can only search for the string you supply in the search argument.
- giskard reventlov
- Registered Member
- Posts: 11
- Joined: Wed Jul 29, 2020 4:42 pm
Re: SRCHFOR to list members where 'search string' is not found.
the ibm manual disagreeI think you cannot do this. You can only search for the string you supply in the search argument.
something like
Code: Select all
****** ***************************** Top of Data ******************************
000003 //ISR EXEC PGM=ISRSUPC,
000004 // PARM=(SRCHCMP,'LNFMTO')
000005 //NEWDD DD DISP=SHR,DSN=<YOUR PDS>
000006 //OUTDD DD SYSOUT=(*)
000007 //SYSIN DD *
000008 SRCHFOR '<YOUR SEARCH STRING>'
000009 /*
****** **************************** Bottom of Data ****************************
- CountryDelight
- Registered Member
- Posts: 12
- Joined: Sun Aug 08, 2021 4:19 pm
Re: SRCHFOR to list members where 'search string' is not found.
Thank you giskard, LNFMTO did work great.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute