Posted: Thu Nov 17, 2005 3:07 pm Post subject: Compare complete records in a file with multi format data
I have 2 files, LREC 16383, which are the output from an unload job of IMS database. Some part of the data is in HEX format. My task is to compare these two files and sort out only the matching records (complete record should match).
The problem I am facing is the key is nothing but the complete record. And the record has all flavors of data like CH,PD etc...
I tried to do the task with the following jcl, but its failing.
If I am not wrong there shall be a limit on the key size which I am violating and at the same time I think I am coding the wrong format too, but I am not sure what exact format do I need to use as the key is complete record.
Please let me know if we can do this task with Syncsort.
Note: I used Syncsort as my shop allows me to use only this.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Thu Nov 17, 2005 3:29 pm Post subject:
Ram,
First all do not post topics referring to specific people. There are many people who help in here.
Secondly Frank is DFSORT developer and he is happy to answer questions on DFSORT. Syncsort is a competitive product for DFSORT. It is not a good idea to ask Frank for Syncsort solutions.
Now to answer your specific question. Yes there is a limit on sort fields and it depends on the format of the field. The max you can have is 4092 bytes (CH). For packed decimal field you can have to 256 bytes.
If you have syncsort for z/os v 1.2 then you can use JOIN feature to compare the datasets. Run the following Job and post your sysout
First, I am sorry to fix my referrence to you and frank.
This is the sysout of the test job
If I am not wrong the version with my shop is Z/OS 1.5.0
Code:
SYNCSORT FOR Z/OS 1.1CR TPF3A U.S. PATENTS: 4210961, 5117495 (C) 2002 SYNCS
z/OS 1.5.0
PRODUCT LICENSED FOR CPU SERIAL NUMBER 8638D, MODEL 2084 307 LICENS
SYSIN :
SORT FIELDS=COPY
WER164B 6,896K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 173K BYTES USED
WER146B 20K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=F ; LRECL= 80; BLKSIZE= 80
WER110I SORTOUT : RECFM=F ; LRECL= 80; BLKSIZE= 80
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
WER416B BSAM WAS USED FOR SORTIN
WER416B BSAM WAS USED FOR SORTOUT
WER054I RCD IN 1, OUT 1
WER169I RELEASE 1.1C BATCH 0397 TPF LEVEL 3A
WER052I END SYNCSORT - $TESTJOB,STEP0100,,DIAG=A200,6042,8AAE,ACC6,EA52,4CCA,8A
ARPAGE 5
EST
Please let me know if I had posted the complete information you asked for.
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