How to merge two files on different position in file.

IBM's Sort Product, ICETOOL, ICEMAN and ICEGENER.
Akshya Kumar
New Member
Posts: 8
Joined: Fri Jun 20, 2014 2:22 pm

How to merge two files on different position in file.

Post by Akshya Kumar »

Hi

I want to merge two files from different position in each file, is that possible? Can anybody suggest please.

Input file1:

Code: Select all

Field1 Data1 
Field2 Data2 		
Field3 Data3 
Field4 
Field5 
Field6 
Input file2:

Code: Select all

Field1 
Field2 
Field3 
Field4 Data4 
Field5 Data5 
Field6 Data6 
Expected Output File:

Code: Select all

Data1 Data2 Data3 Data4 Data5 Data6 
William Collins
Global Moderator
Global Moderator
Posts: 487
Joined: Sun Aug 25, 2013 7:24 pm

Re: How to merge two files on different position in file.

Post by William Collins »

Look at ICETOOL's RESIZE operator. Concatenate the two files for input. Specify a USING file. In that, use OMIT COND= to drop the records which have blanks, use INREC to BUILD a record which is 8,5 plus a blank. RESIZE from six to 36.
Akshya Kumar
New Member
Posts: 8
Joined: Fri Jun 20, 2014 2:22 pm

Re: How to merge two files on different position in file.

Post by Akshya Kumar »

Thanks for the hints William. I could spot this link http://www-01.ibm.com/support/knowledge ... erator.htm. Will work on this to make the final sort statements.
Post Reply Previous topicNext topic

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DFSort, ICETOOL, ICEMAN, ICEGENER.”