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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top