this is to be used in AFP file which is in HEX format.
we have to add a value to the BNG records in AFP(which denotes a start of a transaction in a file).
to do that we are running a counter variable (in decimal format) each time the BNG record is encountered in the AFP fule. from here we need to take the generated value as an EBCDIC code and convert it to its equivalent HEX code. EX:
EBCDIC HEX
0 F0
1 F1
2 F2
0 F0
1 F1
2 F2
the HEX values have to be populated into the AFP file.
Coded