mainframe - convert comp-2 to alphanumeric in cobol -
i have copybook several comp-2 variables need in alphanumeric form display purposes. have tried move, redefines, move numeric alphanumeric , nothing seems work.
here's program:
id division. program-id displexp. data division. working-storage section. 01 some-name comp-2. 01 some-output pic -9.9e-99. procedure division. move -2.3e-6 some-name some-output display ">" some-name "<" ">" some-output "<" goback . the output is:
>-.23000000000000000e-05<>-2.3e-06< if can clarify question, i'm sure there's answer available.
Comments
Post a Comment