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
 

 

Help/Advice needed on joining fields from 2 files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Help/Advice needed on joining fields from 2 files
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    Post subject:
Reply with quote

All,

I got the answer from one of the older posts

http://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    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 Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Sum Fields ballaswaroop DFSORT/ICETOOL 4 Tue May 02, 2017 11:07 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am


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