JCL required for comparing files



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

JCL required for comparing files

Postby harish_chnder » Thu Dec 04, 2008 5:54 pm

I need to compare two files where the difference lies in only one field(say at 1st byte, length 10 bytes)
in each row.
Should i use DFSORT or COMPAREX? Which is better? Can you give me an example?
harish_chnder
 
Posts: 3
Joined: Tue Nov 25, 2008 4:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL required for comparing files

 

Re: JCL required for comparing files

Postby Frank Yaeger » Thu Dec 04, 2008 9:49 pm

Show an example of the records in each input file (relevant fields only) and what you expect for output. Give the RECFM and LRECL of each input file. If either file can have duplicates within it, show that in your example.

Should i use DFSORT or COMPAREX? Which is better?


Better how (performance? ease of use? something else?)? You would have to determine that for yourself based on your criteria for what "better" means to you.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1080
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 14 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post