Hi ,
I want to find the list of members that contains the strings delete and TableA.
Ex:
MEM1
DELETE from
TableA
MEM2:
Select *
from
TableA
For this case, MEM1 should be displayed in the SPOOL. Can anyone please give me the suggesstion to code using FILE-AID or ISRSUPC or PDSMAN.
Thanks in Advance.
Multiple string search using File-AID for PDS members
Re: Multiple string search using File-AID for PDS members
I would love to but Enrico has already done that. Here is the link jcl/topic5763.html
His example is excellent showing the output from the run etc. . . In case you are in a hurry here is some 'generic' JCL to do fulfill your requirement
His example is excellent showing the output from the run etc. . . In case you are in a hurry here is some 'generic' JCL to do fulfill your requirement
Code: Select all
//SRCHFOR JOB (,,time,lines),'your name',CLASS=class
/*ROUTE PRINT node.location
// EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,ANYC,IDPFX,NOPRTCC)
//NEWDD DD DSN=your.data.set.name,DISP=OLD
//OUTDD DD SYSOUT=A
//SYSIN DD *
SRCHFOR 'string1'
SRCHFOR 'string2'
SRCHFORC 'and string3'
//*end
/*
-
- Posts: 1
- Joined: Tue Jul 02, 2013 8:22 am
- Skillset: mainframe exp
- Referer: web access
Re: Multiple string search using File-AID for PDS members
what do u mean by sysout=a
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Multiple string search using File-AID for PDS members
what do u mean by sysout=a
The word is 'you' not 'u'
If you so not know this basic JCL then I suggest you look up the JCL Language Reference and User Guide manuals easily got to by following the IBM Manuals links at top and bottom of each page of the forum. Note that the A is installation specific but generally will be acceptable.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Merging PDS members into single sequential file.
by jcbrotel » Thu Aug 18, 2022 7:27 pm » in IBM Cobol - 4
- 2893
-
by prino
View the latest post
Fri Aug 19, 2022 11:20 pm
-
-
-
Create multiple records based on one record within a file.
by chillmo » Thu Aug 11, 2022 3:54 am » in Syncsort/Synctool - 5
- 7683
-
by sergeyken
View the latest post
Fri Aug 12, 2022 2:23 am
-
-
-
Replace a string with another string with different length
by Devrana » Sun Jan 19, 2025 3:23 pm » in JCL - 1
- 1632
-
by sergeyken
View the latest post
Sun Jan 19, 2025 11:07 pm
-
-
- 2
- 2333
-
by steve-myers
View the latest post
Sat Nov 14, 2020 6:17 am
-
-
FTP PDS members into desktop
by kalyani krishna » Tue Feb 28, 2023 10:47 pm » in Interview Questions - 1
- 1957
-
by dneufarth
View the latest post
Wed Mar 01, 2023 5:28 am
-