IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Merging 2 files in vertical order


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chituswain

New User


Joined: 01 Apr 2008
Posts: 3
Location: PPT

PostPosted: Thu May 08, 2008 4:45 pm
Reply with quote

Hi ,

I have a requirement and need to get the output using ICETOOL.Can somebody help me.

Input file1.
-----------

aaabbb
cccddd
eeekkk
ggghhh

inputfile2:
-----------
111222
333444
555666
777888

Expected Output:

aaa 111
ccc 333
eee 555
ggg 777

Note: No of records in file1 is equal to no of records in file2. Requirement is to take first 3 byte from input file1 and 1 space and 3 bytes from input file2 and write into output file. FYI, There is no key field. We need to club the first record of file1 with 1st record of file2 and so on..
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu May 08, 2008 9:02 pm
Reply with quote

You can use the technique shown in the "Join fields from two files record-by-record" Smart DFSORT Trick at:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Rotate partition-logical & physic... DB2 0
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top