Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Merging 2 files in vertical order

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
chituswain

New User


Joined: 01 Apr 2008
Posts: 4
Location: PPT

PostPosted: Thu May 08, 2008 4:45 pm    Post subject: Merging 2 files in vertical order
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
References
PostPosted: Thu May 08, 2008 4:45 pm    Post subject: Re: Merging 2 files in vertical order Reply with quote

Frank Yaeger

DFSORT Moderator


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

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

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

http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1