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
 
OVERLAY Counterpart in SYNCSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: OVERLAY Counterpart in SYNCSORT
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

Site Director


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

PostPosted: Mon Mar 19, 2007 7:45 pm    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Mon Mar 19, 2007 8:35 pm    Post subject:
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    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Tue Mar 20, 2007 11:38 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Mar 20, 2007 7:05 pm    Post subject:
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    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 Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am

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