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 Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts copying data without knowing location Arun Raj DFSORT/ICETOOL 12 Thu Jul 20, 2017 1:03 pm


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