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

What are the 2 types of parameters in dd statement?

730


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

810


if the submitter of a job wants to inform another user about the job completion, how can it be done?

861


When space is allocated for an output dataset, what units can be used?

855


How is a type of file defined in the jcl that executes the cobol program?

817






what is the use of IEBGENER utility?

748


What statement can be used to send data to another mvs jes3 node?

1069


How to pass data to a program that is coded in an exec statement?

926


How to run cobol program using jcl?

737


What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

1663


What is the function of dd name parameter with a 2 part structure; audit.report?

795


how do you access an uncataloged dataset in a jcl?

1057


Is condition checking possible in jcl?

828


What is the difference between run mode and addressing mode?

726


What is the function of the dd mgmtclas keyword in sms datasets?

860