View previous topic :: View next topic
|
Author |
Message |
unnipbvr
New User
Joined: 27 Nov 2006 Posts: 7 Location: banglore
|
|
|
|
i have 2 files say file 1 and file 2..
file 1 has a header record, with rec length 500
file 2 has records with rec length 300
i need my output file to have the first record as the file 1 record,
followed by the records in file 2..
please help |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Here's a DFSORT/ICETOOL job that will do what you asked for:
Code: |
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=... input file1 (FB/500)
//IN2 DD DSN=... input file2 (FB/300)
//OUT DD DSN=... output file (FB/500)
//TOOLIN DD *
COPY FROM(IN1) TO(OUT)
COPY FROM(IN2) TO(OUT) USING(CTL1)
/*
//CTL1CNTL DD *
INREC OVERLAY=(500:X)
/*
|
|
|
Back to top |
|
|
|