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

OVERLAY Counterpart in SYNCSORT


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

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Mon Mar 19, 2007 5:13 pm
Reply with quote

Hi

is there any counterpart for OVERLAY(DFSORT command) in SYNCSORT?

prabhu
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 19, 2007 7:45 pm
Reply with quote

Hello,

Please post what data you have as input and what you want the output to be.

When we see what data you have and what output you want, we may be able to offer suggestions.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Mar 19, 2007 8:35 pm
Reply with quote

Hi Prabhu,

In syncsort u can directly specify what u want to overlay
like to overlay seqnum at the end of record

Code:
//SYSIN DD *
   OPTION COPY
   INREC FIELDS=(1,80,SEQNUM,8,ZD)   
/*
Back to top
View user's profile Send private message
prabs2006

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Tue Mar 20, 2007 11:37 am
Reply with quote

EKTA,

Thanks for the reply.

INREC OVERLAY in DFSORT appends records to an existing file. But SYNCSORT doesn't recognize this OVERLAY.

My requirement is to append new records in downwards .

If more clarification required please let me know

Prabhu
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Mar 20, 2007 11:38 am
Reply with quote

Hi Prabhu,

Would u please give i/p & o/p details?
Back to top
View user's profile Send private message
prabs2006

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Tue Mar 20, 2007 11:45 am
Reply with quote

Hi EKTA,

I have pasted the JCl. Records from file1 is getting overridden by file2.

//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=IYMN.TRAN.YMD26109.G1294V00,
// DISP=SHR
//IN2 DD DSN=TEST.GRP.NUMBERS,
// DISP=SHR
//T1 DD DSN=TEST.T5,UNIT=SYSDA,SPACE=(TRK,(5,5)),
// DISP=(NEW,CATLG,DELETE)
//OUT12 DD SYSOUT=*
//OUT1 DD SYSOUT=*
//OUT2 DD SYSOUT=*
//TOOLIN DD *
COPY FROM(IN1) TO(T1) USING(CTL1)
COPY FROM(IN2) TO(T1) USING(CTL2)
SPLICE FROM(T1) TO(OUT12) ON(6,6,CH) WITH(1102,1) -
USING(CTL3) KEEPNODUPS
/*
//CTL1CNTL DD *
INREC OVERLAY=(1101:C'11')
//CTL2CNTL DD *
INREC OVERLAY=(1101:C'22')
//CTL3CNTL DD *
OUTFIL FNAMES=OUT12,INCLUDE=(1101,2,CH,EQ,C'12'),OUTREC=(1:6,6)
OUTFIL FNAMES=OUT1,INCLUDE=(1101,2,CH,EQ,C'11'),OUTREC=(1:1,1100)
OUTFIL FNAMES=OUT2,INCLUDE=(1101,2,CH,EQ,C'22'),OUTREC=(1:1,1100)
/*
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 20, 2007 7:05 pm
Reply with quote

Hello,

You need to post actual input data and what you want the output to look like.
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 Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts Help, trying to use OVERLAY to get a ... DFSORT/ICETOOL 3
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
No new posts Syncsort "Y2C" Function SYNCSORT 1
Search our Forums:

Back to Top