Byte conversion Algorithm
Page 1 of 1
Byte conversion Algorithm
Hi All,
I am need of developing a conversion algorithm that will convert a 3 byte numeric value to 2 byte alphanumeric/alphabetic/numeric value and viceversa. Any one of you had a similar requirement ?
For eg.
001 - 01
002 - 02
003 - 03
...
...
...
099 - 99
100 - A1
...
270 - AA
etc...
Something of this sort. Can you please help me out. Also Iam not suppossed to hard code these mapped values with the cobol module nor I can store these values in any lookup file.
I am need of developing a conversion algorithm that will convert a 3 byte numeric value to 2 byte alphanumeric/alphabetic/numeric value and viceversa. Any one of you had a similar requirement ?
For eg.
001 - 01
002 - 02
003 - 03
...
...
...
099 - 99
100 - A1
...
270 - AA
etc...
Something of this sort. Can you please help me out. Also Iam not suppossed to hard code these mapped values with the cobol module nor I can store these values in any lookup file.
kasthuri- Posts : 212
Join date : 2013-01-27
Similar topics
» HEX to ASCII conversion
» FORTRAN to Cobol conversion
» DATE CONVERSION TIPS
» Assembler 24bit to 31 bit conversion
» FORTRAN to Cobol conversion
» DATE CONVERSION TIPS
» Assembler 24bit to 31 bit conversion
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|