View previous topic :: View next topic
|
Author |
Message |
denis.dhimitri
New User
Joined: 25 Mar 2008 Posts: 14 Location: milan, italy
|
|
|
|
Hello to everyone,
I'd like to copy 2 different files with different length into a third one:
File 1: LRECL=600
File 2: LRECL=280
Output : LRECL=600
Does anyone know how can I do it with SORT or ICETOOL ?
Denis |
|
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/600)
//IN2 DD DSN=... input file2 (FB/280)
//*** Use a MOD data set for //OUT
//OUT DD DISP=MOD,DSN=... output file (FB/600)
//TOOLIN DD *
COPY FROM(IN1) TO(OUT)
COPY FROM(IN2) TO(OUT) USING(CTL1)
/*
//CTL1CNTL DD *
INREC OVERLAY=(600:X)
/*
|
|
|
Back to top |
|
|
denis.dhimitri
New User
Joined: 25 Mar 2008 Posts: 14 Location: milan, italy
|
|
|
|
Thanks a lot for the Icetool Card Mr. Yaeger, it helped me a lot
Denis Dhimitri |
|
Back to top |
|
|
|