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
What are the 2 types of parameters in dd statement?
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?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
When space is allocated for an output dataset, what units can be used?
How is a type of file defined in the jcl that executes the cobol program?
what is the use of IEBGENER utility?
What statement can be used to send data to another mvs jes3 node?
How to pass data to a program that is coded in an exec statement?
How to run cobol program using jcl?
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' ?
What is the function of dd name parameter with a 2 part structure; audit.report?
how do you access an uncataloged dataset in a jcl?
Is condition checking possible in jcl?
What is the difference between run mode and addressing mode?
What is the function of the dd mgmtclas keyword in sms datasets?