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


Please Help Members By Posting Answers For Below Questions

Explain how can a jobs execution priority be modified?

736


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

792


What happens if both JOBLIB & STEPLIB is specified ?

604


Which statement is used to identify the private libraries in job?

674


Explain the function of //cntl statement?

653






Is it possible to code instream data in a PROC?

748


What is the purpose of dd?

724


What is the difference between the positional and keyword parameters? Give examples.

704


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

667


in ways data can be passed to a COBOL program from JCL?

662


how you can access an uncataloged dataset in a JCL?

649


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?

2216


Are there any set of rules for the names of the steps used in a job? What are they?

610


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

778


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

603