IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SYNCSORT combine three FB datasets with different LRECLs


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Akash Sharma

New User


Joined: 13 Jan 2009
Posts: 36
Location: India

PostPosted: Fri Feb 13, 2009 7:17 pm
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Fri Feb 13, 2009 8:40 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Fri Feb 13, 2009 8:41 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts PL/I, VB Datasets and the RDW PL/I & Assembler 4
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
Search our Forums:

Back to Top