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

merging two files without using splice


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

New User


Joined: 06 Apr 2006
Posts: 31

PostPosted: Fri Aug 18, 2006 11:07 am
Reply with quote

Hi,
i have two files,
both with the same no. of records.
say
file1:
sara
sath
soor
sugu

file2:
1161
2345
2134
1221

output should be,
sara 1161
sath 2234
soor 2134
sugu 1221

LRECL no issue to be changed to whatever needed.

in splice it needs some keys to be there in both files. so i could not use that.

can anyone suggest some simple techniques to achieve this.
Back to top
View user's profile Send private message
sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 183
Location: hyderabad

PostPosted: Fri Aug 18, 2006 12:40 pm
Reply with quote

Hi,
You can generate the sequence number for the file-1 and file-2 and then use the sequence number as the KEY to merge them horizontally.


Thank you
Krishy
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Aug 18, 2006 8:09 pm
Reply with quote

See the "Join fields from two files record-by-record" Smart DFSORT Trick at:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

for an example of the technique you can use to do what you want with DFSORT/ICETOOL's SPLICE operator.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
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
Search our Forums:

Back to Top