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

Comparing 2 files & writing into 3rd file.


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

New User


Joined: 18 Sep 2006
Posts: 9

PostPosted: Wed Oct 04, 2006 3:45 pm
Reply with quote

I have 2 FLAT files, FILE1(rec length 500) & FILE2(rec length 200). I need to compare the 2 files, and if a match is found, write into 3rd file. How do i do it via JCL & program ? I need to take duplicates also into consideration.

Kindly excuse for posting onto incorrect TOPIC.
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: Wed Oct 04, 2006 8:39 pm
Reply with quote

Depending on exactly what your records look like and what you want to do, you can use some variation of the "Create files with matching and non-matching records" Smart DFSORT Trick at:

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

Note that you'll need to expand the 200 byte records to 500 byte records (500:X) in order to SPLICE them.
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 FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top