hi,
my fiels A is defined as pic X(02).
field B is a pic 9 (07) comp-3.
values of A= me, no, 1m, 01,03,12.
how can i put 01, 03, 12 into B ?
i am looking for some thing that could tell me that i have a number, i guess. i am working whith cobol I.
The real situation is, if i get CHN01 ( a different field that points to field A) , i must put 01 in B, but i don't know in advance what value i will have.
i tried some thing like field (4:2), but the compiler wouldn't accept it.
thanks for any suggestion.
my fiels A is defined as pic X(02).
field B is a pic 9 (07) comp-3.
values of A= me, no, 1m, 01,03,12.
how can i put 01, 03, 12 into B ?
i am looking for some thing that could tell me that i have a number, i guess. i am working whith cobol I.
The real situation is, if i get CHN01 ( a different field that points to field A) , i must put 01 in B, but i don't know in advance what value i will have.
i tried some thing like field (4:2), but the compiler wouldn't accept it.
thanks for any suggestion.