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 / rajamohan reddy

If your conactenating files in a proc. we can use the
following JCL
//INST PROC
//STEP1 EXEC PGM=IEBGENER
//SYSUT1 DD DISP=SHR,DSN=DATASET1
// DD DISP=SHR,DSN=DATASET2
// DD DISP=SHR,DSN=DATASET3
// DD DISP=SHR,DSN=DATASET4
// DD DISP=SHR,DSN=DATASET5
// DD DISP=SHR,DSN=DATASET6
// DD DISP=SHR,DSN=DATASET7
// DD DISP=SHR,DSN=DATASET8
// DD DISP=SHR,DSN=DATASET9
// DD DISP=SHR,DSN=DATASET10
//SYSUT2 DD SYSOUT=*
//INST PEND
//*
//STEP2 EXEC INST
//SYSPRINT DD SYSOUT=*
//STEP1.SYSUT1 DD DISP=SHR,DSN=DATASET1
// DD DISP=SHR,DSN=DATASET2
// DD DISP=SHR,DSN=DATASET3
// DD DISP=SHR,DSN=DATASET4
// DD
// DD
// DD DISP=SHR,DSN=DATASET7
// DD DISP=SHR,DSN=DATASET8
// DD DISP=SHR,DSN=DATASET9
// DD DISP=SHR,DSN=DATASET10
//SYSIN DD DUMMY

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the use of IEBGENER utility?

668


What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?

9225


//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

924


List the different jcl statements that are not permitted in the procedures?

648


Brief description of inline procedure of jcl.

693






How does jcl act on code(if you take a cobol program)?

716


How do you access an uncatalogued dataset in a jcl?

735


How can the attributes of one sms dataset be copied to another dataset?

870


What is the function of a dd statement?

716


Name what parameter directs the output of the job log dataset?

569


what is a jcl?

697


What is NOTCAT ?

755


Where can program checkpoints be stored for use in a restart?

858


what are JCLLIB and STEPLIB in JCL?

690


Can we call instream to catalog and catalog to instream?

689