How to search strings in multiple dataset with
conditions 'string1 & string2'?



How to search strings in multiple dataset with conditions 'string1 & string2'?..

Answer / rajesh_m13

//STEP1 EXEC PGM=ISRSUPC,PARAM=(SRCHCMP,'IDPFX')
//DD1 DD DSN=SOURCE DSN,DISP=SHR
//..2 , , , , , , , ,
//,,3 ,,, , , ,,,,,,,
//.................
//,,,
//OUTDD DD SYSOUT=*
//SYSIN DD *
SRCHFOR 'STRING1 STRING2'
/*

Is This Answer Correct ?    2 Yes 13 No

Post New Answer

More JCL Interview Questions

Is it possible to left uncode disp?

0 Answers  


what is the function of spool command?

4 Answers  


I've one sequential file, that file size is LREC=100 (File contain Records like 1 to 100). Now I was increase the file size is LREC=102. My question is I want insert 00 (Two Zeros) in to the new file (That output file looks like : 00123 up to 100). How will write the SORT card in JCL. Please let me know.

2 Answers   Syntel,


Explain how can an in-stream dataset be terminated?

0 Answers  


what is a steplib

4 Answers   CGI,






How to ALTER the name of a GDG ?

2 Answers   IBM,


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

0 Answers   IBM,


what is a jcl?

0 Answers   IBM,


I have two input files i/p1 name id-key flag date i/p 2 name id-key date if id-key matches in the both the files then it should write the output file from i/p1 with flag 'Y'. It should be done thru JCL sort card ,Please provide the info on this. ---Note : output file should have all records from i/p1 with proper Flag.

2 Answers  


What do you do if you do not want to keep all the space allocated to a dataset?

2 Answers  


What are the default system and catalog libraries in JCL?

2 Answers   Infosys,


Explain the function of the steplib dd statement?

0 Answers  


Categories