Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Data replication from multiple Db2 ta... kishpra DB2 1 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us