GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Mainframe

 Print  |  
Question:  Merge Files

Answer: If you have 3 different flat files of different logical length then how will you merge them in single flat file? What is the simplest workaround of this problem using sort utility?


April 04, 2009 14:48:01 #1
 rajalg05   Member Since: April 2009    Total Comments: 4 

RE: Merge Files
 
First of all you cant merge files with different record length. Second if you really want to merge those files you will have increase their length using file aid, copy by 3.3 option, select  the 'T' in the screen then select the length (keep a flat length for all) AND then you need to initialize the extra fields. You can have blanks, zeros or spaces (I guess there are more options). After making the 3 files equal length you can simply merge them using sort utility. I guess yo know before merging you need to sort all the files. I hope this would help you.
     

 

Back To Question