Generate hash/checksum and append



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

Generate hash/checksum and append

Postby stevexff » Fri Oct 28, 2011 4:00 pm

I have a requirement to generate a 16-byte checksum value for a record and append it to the record. The E35 exit seems like the right place to do it, and if I'm going to the trouble to write one I may as well make it generic. This is easy enough for variable length records as the record passed to the exit has an RDW on the front which gives the length. Is there any way I can obtain the LRECL in the E35 exit for fixed length records? An alternative would be to FTOV the records so by the time the exit gets hold of them they would have an RDW, but I was hoping there was a cleaner way of doing it.
Steve
stevexff
 
Posts: 56
Joined: Wed Nov 10, 2010 7:48 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Generate hash/checksum and append

Postby BillyBoyo » Fri Oct 28, 2011 4:56 pm

Interesting.

A record-level checksum seems like belt-and-braces-made-of-titanium-wolfram-diamond-and-then-hardened. Ultra-security? You have to kill me if you tell me what it is for?

Assembler? Presumably you prepare the file by extending the lrecl prior to the sort?

If you append to the record, you're making it more "difficult" to find, but again I'd guess you are going to read them in Assembler?

With the Fixed, again you'd need to pre-extend the records. Maybe that gives you a good moment to make them variable?

I've previously looked a little at getting length for a fixed file to the exit. I couldn't find anything that convenient, doesn't mean the DFSORT experts won't have some ideas later.

To make it worth making it generic, I guess you're looking at using for a number of datasets? Else why bother?

Interesting. You doing a simple hash? Whoops... forget I asked that, I have family...
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Generate hash/checksum and append

Postby Frank Yaeger » Wed Nov 02, 2011 2:02 am

Is there any way I can obtain the LRECL in the E35 exit for fixed length records?


DFSORT does NOT have any built-in function for that.
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: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 15 times


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post