ihave ten flatfile in that iwant to concatinate all the
files except file 5,6 into output file by uing jcl?
how to do this? give me detail yntax for tis?
Answer Posted / mr. cooooool
Hi...........
We can do it as following.
//COOLJCL JOB NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=COOL.TOP.PS1,DISP=SHR
// DD DSN=COOL.TOP.PS2,DISP=SHR
// DD DSN=COOL.TOP.PS3,DISP=SHR
// DD DSN=COOL.TOP.PS4,DISP=SHR
//* DD DSN=COOL.TOP.PS5,DISP=SHR
//* DD DSN=COOL.TOP.PS6,DISP=SHR
// DD DSN=COOL.TOP.PS7,DISP=SHR
// DD DSN=COOL.TOP.PS8,DISP=SHR
// DD DSN=COOL.TOP.PS9,DISP=SHR
// DD DSN=COOL.TOP.PS10,DISP=SHR
//SYSUT2 DD DSN=COOL.TOP.OUTPUT,DISP=SHR
//SYSIN DD DUMMY
We can give comments for 6th and 7th dd statement
through which we can concatenate the remaining files
except 5,6 file into the output file.
I know there is also some other logic
except this.
if anybody know than tell me.
thanks.
Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
Explain how can a jobs execution priority be modified?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
What happens if both JOBLIB & STEPLIB is specified ?
Which statement is used to identify the private libraries in job?
Explain the function of //cntl statement?
Is it possible to code instream data in a PROC?
What is the purpose of dd?
What is the difference between the positional and keyword parameters? Give examples.
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
in ways data can be passed to a COBOL program from JCL?
how you can access an uncataloged dataset in a JCL?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
Are there any set of rules for the names of the steps used in a job? What are they?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?