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?
Answers were Sorted based on User's Feedback
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 |
Answer / harsha
In addition to the above provided solutions, if user is
concatenating these files in a PROC then user can provide
the overriding parameter in JCL as
//STEP1 EXEC PROC1
//STEPA.DD1 DD DSN=DSN1,DISP=SHR
// DD DSN=DSN2,DISP=SHR
// DD DSN=DSN3,DISP=SHR
// DD DSN=DSN4,DISP=SHR
// DD DSN=DSN7,DISP=SHR
// DD DSN=DSN8,DISP=SHR
// DD DSN=DSN9,DISP=SHR
// DD DSN=DSN10,DISP=SHR
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / 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 |
Answer / ajay kumar ande
give one DD Name to all datasets excluding 5,6
dd1 dd dsn=dataset1
dd dsn=dataset2
dd dsn=dataset3
dd dsn=dataset4
dd dsn=dataset7
dd dsn=dataset7
dd dsn=dataset9
.
.
.
.
Is This Answer Correct ? | 2 Yes | 7 No |
Where can program checkpoints be stored for use in a restart?
What type of versions we r using in mainframe (jcl, cobol, db2, vsam, cics)?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
if my GDG limit has been kept as 50 and if am trying to put 60 records.what would happen. will there be any abend for this scenario
Suppose there are 10 steps in a PROC, I want to execute only step5. How do you give the condition in the JCL that calls this PROC?
How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
what is the use of IEBGENER utility?
I have a dataset with record length 40 in production, due to some requirements it was changed to 80. Then how can we know the jobs which are effected by this change and how can we resolve it.
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
if in a job, region is mentioned in both jobcard and in step then which is cosidered at the step level? A job has region 4k in jobcard and step1 with region 0k and step2 with 16k, then what is the region allocated for the entire job? what is the region step1 takes? what is the region step2 takes?
in jcl you are having JCLLIB and STEPLIB what happens