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 Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am


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