2nd file contains the number of the outfile (byte 4 and 5) where the record from 1st file should go to. e.g. The record having 1st 3 bytes as 103 will find a match on file 2, then it will go to outfile '01' , the 105 will go to '03' and likewise. The 109 will go to outfile 03 because it does not find a match on File 2.
I wrote the JOINKEYS and it works -
Now, can the JOINKEYS be changed for conditional check ? The condition being, if 1st 3 bytes are blank, then check for bytes 10 to 12 and join it with the 1st 3 bytes from file 2?
It can be done in 2 steps. But can this be done in one step?
Thanks. _________________ Regards,
Mangsk
kolusu, Sqlcode,
Thank you for your reply.
Unfortunately, my shop has Syncsort 1.3.2.1 and it doesn't seem to support the JNF1CNTL statement. I get return code of 0; but I don't get the desired output.
I believe Kolusu does not help with Syncsort.
Can anyone else help out on this for Syncsort? Maybe Alissa? _________________ Regards,
Mangsk
mangsk,
Actually, I shoud have asked this earlier but what is the LRECL and RECFM for both the input files.
Edited:- Syncsort doesn't support JNF*CNTL. If your input files are of different LRECL, you would need separate step which would mimic JNF1CNTL processing. If they are of same length,please let us know.
Sqlcode,
My files are of different length. File2 is actually 5 bytes while the File1 is bigger than 18 bytes I have here in the example.
So, with reference to your updated response, with SYNCSORT it seems there is no other way other than going with 2 step process.
Thank you for all your help! _________________ Regards,
Mangsk
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