Hi All - new to this group, cannot find the answer to this question in previous threadss so apologies if it has been asked before.
I am trying to convert a packed field that can contain alpha numerics to a displayable format.
For example a PIC X field containing the value x'C4'. I want to convert this into an PIC XX - 'C4' so it can be displayed. I cannot find any shift operators in COBOL (eg the << and >> equivalents in C) so am a bit(?) stuck. Would prefer not to revert to an assembler routine to do this. Using COBOL 370 on IBM Mainframe.
Any help very much appreciated
Regards
Mike
I am trying to convert a packed field that can contain alpha numerics to a displayable format.
For example a PIC X field containing the value x'C4'. I want to convert this into an PIC XX - 'C4' so it can be displayed. I cannot find any shift operators in COBOL (eg the << and >> equivalents in C) so am a bit(?) stuck. Would prefer not to revert to an assembler routine to do this. Using COBOL 370 on IBM Mainframe.
Any help very much appreciated
Regards
Mike