I have an 8 character Hex field (which happens to be an IDMS dbkey) - for example: 3B823417 - and I need to be able to process an input file contains a number of records with this data.
//INFILE DD *
I know that I can turn HEX on in tso but to enter the values I will have to manually type them into the two rows.
so it would look like
000001 b b 17 3899960 23 0998389783
or more simply
But I need to know how I can enter 8 characters of hex data 3B823417 and get the COBOL program to "understand" or read it as though it were a COMP with the 4 bytes = '3B823417'. (which converts to 0998389783 in decimal - which I will then be able to use as the DBKEY in an IDMS command "FIND DB-KEY w-dbkey"
The have DFSORT, so if there were convesion option I could try that as well.