Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Merging of two files data ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Sandy-is-here

New User


Joined: 16 Mar 2006
Posts: 6
Location: Bangalore

PostPosted: Thu May 11, 2006 12:31 pm    Post subject: Merging of two files data ?
Reply with quote

Hi Experts,

I have two files with four fields each. For eg.
File 1:
aaa 1999 111 10.00
bbb 2000 222 15.50
...
...

File 2:
aaa 1999 555 18.80
bbb 2000 678 10.50
...
...

Now, based on first two fields, I need to create a output file, which should look like this:
Output file:
aaa 1999 111 10.00 555 18.80
bbb 2000 222 15.50 678 10.50
...
...

That means, merging the last two columns of the 2nd file with the 1st one, if first two column value matches !!
Is there any way to achive this, without writing a program ??

Please help !!

Thanks in advance
Sandy
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


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

PostPosted: Thu May 11, 2006 8:56 pm    Post subject:
Reply with quote

What is the RECFM and LRECL of input file1?

What is the RECFM and LRECL of input file2?

Are there any keys in file1 that don't appear in file2? Are there any keys in file2 that don't appear in file1? If so, what do you want to do for these mismatched keys?
Back to top
View user's profile Send private message
Sandy-is-here

New User


Joined: 16 Mar 2006
Posts: 6
Location: Bangalore

PostPosted: Fri May 12, 2006 2:02 pm    Post subject: Re: Merging of two files data ?
Reply with quote

Hi Frank,

I have achieved what I wanted thru SPLICE in ICETOOL, by following the Smart DFSORT Tricks !!

Thanks a lot...

-Sandy
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Fri May 12, 2006 8:40 pm    Post subject:
Reply with quote

Good.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us