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
How to execute 2nd and 4th steps among 5 steps in jcl proc?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
what is the use of IEBGENER utility?
What is the function of the steplib dd statement?
what is a jcl?
Matching Logic in Jcl not in cobol.Could any one please answer this question
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?
Explain the function of the steplib dd statement?
Explain the function of //jcllib statement?
what is use of disp parameter in dd statement?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
When space is allocated for an output dataset, what units can be used?
What parameter directs the output of the job log dataset?
what are JCLLIB and STEPLIB in JCL?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?