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

I've one sequential file, That file contains millians of Junk & CHAR recoreds example File 1 ,,,,,...,,,.....,.,.INFOSYS.....,,,,,,,,,,,WIPRO..........., ,...,..,. My questions is : I want omit the 44th posstion to 4 CHAR (WIPRO) remaining things I want output file (including Junk CHAR also)... How can we slove this problem & give me a syntax. Please provide the result as soon as possible.

5 Answers   CTS,


What is meant by S0C7 system abend code?

8 Answers  


Which storage devices are grouped under DASD and SYSDA ?

1 Answers   IBM,


I have one GDG. Everyday One new version is being created.Now I want to split this created version in different files each having 1000 records. Here Problem is I don't know How many records will be there in new version of GDG? that's why I don't know How many Out files we need to use . Interesting??????????????

4 Answers   CTS,


What is the purpose of dd dummy statement?

0 Answers  






What is STEPLIB, JOBLIB? What is it used for?

2 Answers  


While using SORT FILES =NONE,XSUM I am getting error "ICE172A E XSUM IS NOT SUPPORTED - USE ICETOOL SELECT IF APPROPRIATE"..I want to write duplicate records a a serparte file..how i can do tht?

3 Answers   Steria,


i have two flat files.i want to select one record from that file by using jcl.for example file1 contains emp no,name,joining date. file2 has same details.emp no is primary key. i will give empno.that emp details send to outfile.please let me know if any one knows it.give sample code.

1 Answers   TCS,


what is meant by jobtrac?

4 Answers   CSC,


How can a job send a status message to a tso user at the completion of a job?

1 Answers  


In your JCL, run the even numbered steps if date is even and run odd numbered steps if date is odd . Where do you generate the date ??in cobol or JCL ??

2 Answers   CSC,


What is the differentiation between TRK,cyl, and Bytes... how they can be connected??

2 Answers  


Categories