Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us