I have a one byte field where in one record the value is “04” and in the next record it is “0f” (for decimal 15).
According to this thread
thread209-542604
seems a comp field will be a minimum 2 bytes long but my records only have one byte for the field. I’ve included the display for 2 records for clarity, the field in question is in column 36 only.
----+----1----+----2----+----3----+----4
:: :::::::: :: ::: ::: ::
1100324002100000000000EF0000000000000000
00010833381014000342041C0000000000140000
:: ::k::::: :: : ::: ::# ::
110029100210000000000027000000000000000
00049283381044060342042B00000000004F000
I’ve tried various redefines and moves and I cannot get it to define the field correctly so as to interpret x’0f’ as decimal 15. I even tried a modified version of code from thread
thread209-508632 am running IBM VS COBOL II Release 4.0 09/15/92. What pictures/redefines/conversions should I be doing?
PS. I will be away Wed. but any reply would be appreciated.
According to this thread
thread209-542604
seems a comp field will be a minimum 2 bytes long but my records only have one byte for the field. I’ve included the display for 2 records for clarity, the field in question is in column 36 only.
----+----1----+----2----+----3----+----4
:: :::::::: :: ::: ::: ::
1100324002100000000000EF0000000000000000
00010833381014000342041C0000000000140000
:: ::k::::: :: : ::: ::# ::
110029100210000000000027000000000000000
00049283381044060342042B00000000004F000
I’ve tried various redefines and moves and I cannot get it to define the field correctly so as to interpret x’0f’ as decimal 15. I even tried a modified version of code from thread
thread209-508632 am running IBM VS COBOL II Release 4.0 09/15/92. What pictures/redefines/conversions should I be doing?
PS. I will be away Wed. but any reply would be appreciated.