Posted: Mon Apr 09, 2007 9:35 am Post subject: Merge 2 files
Hi,
I have 2 files. In file 1 the first 27 chars is a key. And its unique. In file 2 the first 7 chars forms the key and is unique. The first 7 chars of file 1 and file 2 match. My output is the merge of the 2 files. My problem is the first 7 chars of the file 1 is not unique. I tried using SYNCSORT. So when I try to sum only 1 entry from file1 ends up in the output file.
The file descriptions are as given below
File 1 Data:
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
Posted: Mon Apr 16, 2007 2:56 am Post subject:
cyber_snake wrote:
any updates regarding this scenario???
obviously not. This could be due to 2 things:
1 - this is a separate topic
2 - you don't give enough info - e.g. the fields of which record in file 1 are moved to which record of file 2. What if the number of records in file 1 does not match the number of records in file 2 etc etc _________________ Utility and Program control cards are NOT, repeat NOT, JCL.
Thanks Nic for the reply, The movable data for each field is the same rec length, meaning... field1 of file1 is the same with field2 of file2, and so on... The total rec of each file is also the same... I only want to know if ICETOOL can handle this scenario.... I already have temp solution for this by creating seqnum for each file and in the last step i use easytrieve for moving the fields with Key criteria...
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