Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Syncsort - Match and overlay

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

New User


Joined: 18 Mar 2005
Posts: 7

PostPosted: Wed Aug 11, 2010 12:44 pm    Post subject: Syncsort - Match and overlay
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

Site Director


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

PostPosted: Thu Aug 12, 2010 12:34 am    Post subject:
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: 2278
Location: @my desk

PostPosted: Thu Aug 12, 2010 8:33 am    Post subject: Reply to: Syncsort - Match and overlay
Reply with quote

Hi Dick,

Already the TS has started a new topic for this here
http://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

Site Director


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

PostPosted: Thu Aug 12, 2010 8:57 am    Post subject: Reply to: Syncsort - Match and overlay
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.    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 Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts Match records - scdinesh DFSORT/ICETOOL 6 Wed Feb 22, 2017 5:02 am
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm
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


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us