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: 2285
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
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am

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