View previous topic :: View next topic
|
Author |
Message |
Akash Sharma
New User
Joined: 13 Jan 2009 Posts: 36 Location: India
|
|
|
|
Hi all,
Can you please guide how to concatenate 3 fixed block files of different LRECL to a fixed block file.
i.e.
INPUT:----
FILE1--FB--LRECL:100
FILE2--FB--LRECL:200
FILE3--FB--LRECL:300
Output:----
FILE4--FB--LRECL:300 |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Akash Sharma
The below SYNCTOOL job should work for your requirement.
Code: |
//STEP1 EXEC PGM=SYNCTOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DISP=SHR, Input file-1, FB/100
//IN2 DD DISP=SHR, Input file-2, FB/200
//IN3 DD DISP=SHR, Input file-3, FB/300
//T1 DD DSN=&&T1,DISP=(MOD,PASS),DCB=LRECL=300
//OUT DD DISP=SHR, Output file , FB/300
//TOOLIN DD *
COPY FROM(IN1) TO(T1) USING(CTL1)
COPY FROM(IN2) TO(T1) USING(CTL1)
COPY FROM(IN3) TO(T1)
COPY FROM(T1) TO(OUT)
//CTL1CNTL DD *
INREC OVERLAY=(300:X)
|
|
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
It doesn't look like it......
SyncSort for z/OS 1.3 Programmer’s Guide wrote: |
Concatenating Input Data Sets
SyncSort must determine one set of DCB characteristics to use for reading all data sets in
the concatenation. The following rules apply to the DCB characteristics:
• When the first data set is fixed-length (RECFM=F, FB, FBS), all subsequent data sets
must be fixed-length and have the same LRECL. |
Try looking at the JOIN, different inputs can have different record lengths and formats. |
|
Back to top |
|
|
|