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

Synsort shows on the same outfile as the joined records


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

New User


Joined: 28 Oct 2008
Posts: 98
Location: Cubicle

PostPosted: Tue May 24, 2011 8:59 pm
Reply with quote

It would be nice if you show us some sample input records frm both the file and the expected output from that.
Back to top
View user's profile Send private message
ken herbolic

New User


Joined: 24 Jan 2011
Posts: 16
Location: buffalo

PostPosted: Tue May 24, 2011 9:20 pm
Reply with quote

thanks for all the help....sync sort support has shown me the problem with my code....the below is a working sample for anyone that may have a simiplar need.
Code:

JOINKEYS FILE=F1,FIELDS=(1,9,A)                               
JOINKEYS FILE=F2,FIELDS=(1,9,A)                               
JOIN UNPAIRED                                                 
REFORMAT FIELDS=(F1:1,9,10,51,F2:1,9,10,58),FILL=X'40'         
OUTREC IFTHEN=(WHEN=(1,1,BI,EQ,X'40'),BUILD=(61,9,51X,70,58)),
       IFTHEN=(WHEN=(NONE),BUILD=(1,60,70,58))                 
SORT FIELDS=COPY                                               
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 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top