Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SYNCSORT combine three FB datasets with different LRECLs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SYNCSORT combine three FB datasets with different LRECLs
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: 2353
Location: @my desk

PostPosted: Fri Feb 13, 2009 8:40 pm    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Fri Feb 13, 2009 8:41 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Unavailable RECON datasets while exec... abdulrafi JCL & VSAM 10 Fri Apr 06, 2018 12:45 pm
No new posts Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts Creation of Datasets dynamically on t... Raghu M N DFSORT/ICETOOL 8 Fri Mar 16, 2018 12:56 am
No new posts Enterprise PL/I - dynamic allocation ... prino PL/I & Assembler 0 Mon Jan 29, 2018 10:17 pm
No new posts Can we combine the rows with same key... V S Amarendra Reddy DB2 14 Fri Dec 01, 2017 10:29 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us