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.
Answer / vs kumar
//SORTIN DD DSN=INPUTFILE1,DISP=SHR
//SORTOF01 DD DSN=X.Y.OUTFILE1,DISP=SHR
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FILES=01,STARTREC=1,ENDREC=1
/*
//SORTIN DD DSN=INPUTFILE2,DISP=SHR
//SORTOF02 DD DSN=X.Y.OUTFILE2,DISP=SHR
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FILES=02,STARTREC=1,ENDREC=1
/*
//STEP2 EXEC PGM=SORT
//SORTIN DD DSN=X.Y.OUTFILE1,DISP=SHR
// DD DSN=X.Y.OUTFILE2,DISP=SHR
//SORTOUT DD DSN=X.Y.OUTFILE,DISP=SHR
//SYSIN DD *
SORT FIELDS=COPY
/*
| Is This Answer Correct ? | 0 Yes | 3 No |
Explain the function of dd name parameter with a 2 part structure; audit.report?
We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other file is empty?
TIME parameter in JOB statement or EXEC statement specifies What type of time (CPU time or execution time)?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
How to fetch even records from one file to another file by using ICETOOL in JCL?
What does IEBGENER do?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
How can a job send a status message to a tso user at the completion of a job?
What are the parameters that are used in creating a gdg?
how do you access an uncataloged dataset in a jcl?
What does a disposition of (NEW,CATLG,KEEP) mean?