Posted: Wed Nov 05, 2003 9:31 am Post subject: Records being dropped when using SYNCTOOL
I have a job which does the following
1. Writes out only the header record of FILE-A, to TEMP1
2. Skips the header rec of FILE-B , and writes out the detail recs to a file TEMP2.
3. Merges these 2 files, to create TEMP3, which is later used for downstream processing.
Now when I run this, the number of recs copied to TEMP3 varies with each run, (even though FILE-A and FILE-B are always the same).
The total recs that were supposed to be written into TEMP3 were around 12 million, however when I ran this job for the first time wrote 7.8 million records to TEMP3 and the second time it wrote out 4.7 million.
I have managed to fix this problem with a work around logic . But I havent been able to account for this strange behavior.
It would be great if someone could explain to me, why this occurs and whether I am unaware of any restrictions while using SYNCTOOL.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Wed Nov 05, 2003 10:06 am Post subject:
Puru,
I see a couple of errors in your Job.
1. There is no CTL3CNTL ddname at all.You have CTL1CNTL twice.
2. The disp parameters are wrong for the concated files.
3. You don't need a SORT verb for any of the copy operations
The following JCL will give you the desired results.
Kolusu,
Thanks will try your JCL and get back to you. As for the CTL3 missing, I did have that in my JCL, when editing it for this post, I had missed it. I also had the DISP=SHR for the concatenated files, along with the VOL=REF=*.TEMP. Thus my JCL looked similar to the one which you have posted. I apologise for the errors.
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