IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Help/Advice needed on joining fields from 2 files


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mak_tcs

New User


Joined: 23 Nov 2005
Posts: 69
Location: Minneapolis, MN USA

PostPosted: Tue Dec 14, 2010 1:58 pm
Reply with quote

All,

Greetings!

I have 2 files. The 1st file will always have one record and my 2nd file will have multiple records. I need to replace a particular record on my 2nd file with the record from 1st file.

E.g:

FILE1:

Code:
Subject: NEW SUBJECT


FILE2:

Code:
Name: Mr. X
Class: X
Subject: OLD SUBJECT - MATHS, PHYSICS
City: New Jersey

I need my output 3rd file to look like

FILE3: (output)
Code:
Name: Mr. X
Class: X
Subject: NEW SUBJECT - MATHS, PHYSICS
City: New Jersey


I am not sure if JOINKEYS can help me, as my fles have no unique keys to match. Could someone help me with this? I have been trying to search similar question in this forum. Thought I will post this question meanwhile. Appreciate help/advise in any form.

Thanks!
Mak
Back to top
View user's profile Send private message
mak_tcs

New User


Joined: 23 Nov 2005
Posts: 69
Location: Minneapolis, MN USA

PostPosted: Tue Dec 14, 2010 4:07 pm
Reply with quote

All,

I got the answer from one of the older posts

ibmmainframes.com/viewtopic.php?t=51373&highlight=reformat

Thank you Frank!! You saved my time.

Mak
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts 3 files concatenated to 1 DFSORT/ICETOOL 2
No new posts JCL sort to compare dates in two file... DFSORT/ICETOOL 2
No new posts Help needed in automation cics transa... CLIST & REXX 1
No new posts Pull data using date difference betwe... DB2 6
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
Search our Forums:

Back to Top