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

Syncsort - Match and overlay


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
dipsybaby

New User


Joined: 18 Mar 2005
Posts: 9

PostPosted: Wed Aug 11, 2010 12:44 pm
Reply with quote

Hi,

I am trying to do a match using SYNCSORT and only in case if 22,2,ch,eq,c'9A' we need to overlay with records from other portion.
Also we need both matched and unmatced records in seperate file.

Code:
JOINKEYS FILES=F1,FIELDS=(1,17,A)                                 
JOINKEYS FILES=F2,FIELDS=(1,17,A),INCLUDE=(22,2,CH,EQ,C'1A')     
REFORMAT FIELDS=(F1:1,255,F2:1,255),FILL=X'FF'                   
JOIN UNPAIRED                                                     
SORT FIELDS=COPY                                                 
OUTFIL FILES=01,INCLUDE=(1,1,BI,NE,X'FF',AND,256,1,BI,NE,X'FF'), 
OUTREC IFTHEN=(WHEN=(22,2,CH,EQ,C'9A'),                           
       BUILD=(1,43,44:364,10,54:305,8,62,193)),                   
       IFTHEN=(WHEN=NONE,                                         
       BUILD=(1,255))                                             
OUTFIL FILES=02,INCLUDE=(256,1,BI,EQ,X'FF'),OUTREC=(1,255)



I am using SYNCSORT FOR Z/OS 1.3.2.0R.
I believe from the error message I am getting, that IFTHEN is not supported by this version of SYNCSORT.

Any help to achieve the above logic would be helpful.


Thanks,
Dipsy
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: Thu Aug 12, 2010 12:34 am
Reply with quote

Hello,

Do not post replies to topics that have been inactive for 3 years. . . Start a new topic for your question.

You mention receiving an error but for whatever reason did not post it. . .

IFTHEN is supported in Syncsort 1.3.2 . . .
Back to top
View user's profile Send private message
Arun Raj

Moderator


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

PostPosted: Thu Aug 12, 2010 8:33 am
Reply with quote

Hi Dick,

Already the TS has started a new topic for this here
ibmmainframes.com/viewtopic.php?t=50657.

I think this splitted topic can be deleted.
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: Thu Aug 12, 2010 8:57 am
Reply with quote

Thanks Arun icon_smile.gif

I notice that in that topic, the error is not posted either. . .

Oh, well icon_sad.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. 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