I am trying to remove a trailing space from a variable. I am using the string...into and am still not getting the correct results. I have tried delimiting by size and still get the same thing. I am sure it is one small thing I am missing but I have been looking at it for so long I don't see it. Thanks for you help in advance!!!!
05 PC-L-PAR PIC X(01) VALUE '('.
05 PC-R-PAR PIC X(01) VALUE ')'.
05 PV-STR-CNT PIC 9(08) VALUE ZEROS.
05 HDR06-SALES-03 PIC X(05) VALUE SPACES.
MOVE 1 TO PV-COUNT.
INSPECT PV-STR-CNT TALLYING PV-COUNT FOR LEADING ZEROS.
IF PV-COUNT > 10 MOVE 10 TO PV-COUNT.
STRING PC-L-PAR
PV-STR-CNT (PV-COUNT
PC-R-PAR DELIMITED BY SPACE
INTO HDR06-SALES-03
HDR06-SALES-03 = "(43) "
I want HDR06-SALES-03 = "(43)"
05 PC-L-PAR PIC X(01) VALUE '('.
05 PC-R-PAR PIC X(01) VALUE ')'.
05 PV-STR-CNT PIC 9(08) VALUE ZEROS.
05 HDR06-SALES-03 PIC X(05) VALUE SPACES.
MOVE 1 TO PV-COUNT.
INSPECT PV-STR-CNT TALLYING PV-COUNT FOR LEADING ZEROS.
IF PV-COUNT > 10 MOVE 10 TO PV-COUNT.
STRING PC-L-PAR
PV-STR-CNT (PV-COUNT
PC-R-PAR DELIMITED BY SPACE
INTO HDR06-SALES-03
HDR06-SALES-03 = "(43) "
I want HDR06-SALES-03 = "(43)"