SiouxCityElvis
Programmer
Okay. This has bothered me off and on several times.
I'm on RMCOBOL-85 on Linux platform.
WORKING-STORAGE.
01 WS-1 PIC 9(8)V9(2).
01 WS-NBR-RFMT PIC ZZZZZZ99.99.
01 WS-DISPLAY-FIELD PIC X(10) JUST.
PROCEDURE.
MOVE WS-1 TO WS-NBR-RFMT.
MOVE WS-NBR-RFMT TO WS-DISPLAY FIELD.
DISPLAY "number field: " WS-DISPLAY-FIELD.
and my field does not align left.
Basically, I've come up with a display that shows
number field: 99.98
when I want it to come up as
number field: 99.98
so no matter what my field value is for the number 99.98 or 1234567.98 it will left align(trim the leading spaces) and show next to the number field: part.
How do I accomplish this short form. The last time I accomplished my goal on this it took all this INSPECT garbage to get the proper display.
Is there not a simple alignment technique in this legacy language?
I've check the manuals, and they preach all this stuff about JUST, or JUSTIFIED and I tried JUST and JUSTIFIED LEFT and don't get results.
Thanks.
-David
I'm on RMCOBOL-85 on Linux platform.
WORKING-STORAGE.
01 WS-1 PIC 9(8)V9(2).
01 WS-NBR-RFMT PIC ZZZZZZ99.99.
01 WS-DISPLAY-FIELD PIC X(10) JUST.
PROCEDURE.
MOVE WS-1 TO WS-NBR-RFMT.
MOVE WS-NBR-RFMT TO WS-DISPLAY FIELD.
DISPLAY "number field: " WS-DISPLAY-FIELD.
and my field does not align left.
Basically, I've come up with a display that shows
number field: 99.98
when I want it to come up as
number field: 99.98
so no matter what my field value is for the number 99.98 or 1234567.98 it will left align(trim the leading spaces) and show next to the number field: part.
How do I accomplish this short form. The last time I accomplished my goal on this it took all this INSPECT garbage to get the proper display.
Is there not a simple alignment technique in this legacy language?
I've check the manuals, and they preach all this stuff about JUST, or JUSTIFIED and I tried JUST and JUSTIFIED LEFT and don't get results.
Thanks.
-David