MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
s_shivaraj Beginner Joined: 21 Sep 2004 Posts: 140 Topics: 14 Location: Chennai, India
Posted: Mon Nov 10, 2008 8:59 am Post subject: Joinkeys for tapes
Hi,
I have two files.
One is DASD FB LRECL=80 having 2 million records and other one is VB 3746 Tape file having around 50 million records.
The key in first file is from position 1 - 9 bytes and the key in second file is from 1448 (including the 4 bytes for VB) - 9 bytes length.
I need the output file to having the matching records from second file.
Can anyone give me the syntax for this?
Also, will Syncsort work efficiently for this in terms of performance?
We have a cobol in place for this, but it is taking 8 hours to find the matching records and do the rest of program processing.
Can we reduce the run time in any way?
Thanks in advance. _________________ Cheers
Sivaraj S
'Technical Skill is the Master of complexity, while Creativity is the Master of Simplicity'
Back to top
amargulies Beginner Joined: 10 Jan 2007 Posts: 123 Topics: 0
Posted: Mon Nov 10, 2008 3:53 pm Post subject:
Sivaraj,
Assuming all the records in the Tape File have a length of at least 1456, then try the following SyncSort application:
Code: //STEP1 EXEC PGM=SORT,PARM='ELAP'
//SYSOUT DD SYSOUT=*
//SORTJNF1 DD DSN=TAPE.INPUT.VB3746
//SORTJNF2 DD DSN=DASD.INPUT.FB80
//SORTOUT DD DSN=MATCH.F1
//SYSIN DD *
JOINKEYS FILE=F1,FIELDS=(1448,9,A)
JOINKEYS FILE=F2,FIELDS=(1,9,A)
REFORMAT FIELDS=(F1:1,4,5)
SORT FIELDS=COPY
_________________ Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum