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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


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