I am trying to string a list of numbers together. I am able to string them together but would like to see the leading zero dropped. Any suggestions or ideas?
Code snippet:
01 PV-PROGRAM-VARIABLES.
05 PV-STR-NBR-FULL PIC 9(04) VALUE ZEROS.
05 PV-MULTI-STR PIC X(500) VALUE SPACES.
in a paragraph:
STRING PC-QUOTE DELIMITED BY SIZE
PV-STR-NBR DELIMITED BY SIZE
PC-QUOTE DELIMITED BY SIZE
PC-COMMA DELIMITED BY SIZE
PV-MULTI-STR DELIMITED BY SIZE
INTO PM164-EXCLD-STR
MOVE PM164-EXCLD-STR TO PV-MULTI-STR
Results:
'1224','1027','1023','0784','0658','0657','0559','0382'
What I want:
'1224','1027','1023','784','658','657','559','382'
Code snippet:
01 PV-PROGRAM-VARIABLES.
05 PV-STR-NBR-FULL PIC 9(04) VALUE ZEROS.
05 PV-MULTI-STR PIC X(500) VALUE SPACES.
in a paragraph:
STRING PC-QUOTE DELIMITED BY SIZE
PV-STR-NBR DELIMITED BY SIZE
PC-QUOTE DELIMITED BY SIZE
PC-COMMA DELIMITED BY SIZE
PV-MULTI-STR DELIMITED BY SIZE
INTO PM164-EXCLD-STR
MOVE PM164-EXCLD-STR TO PV-MULTI-STR
Results:
'1224','1027','1023','0784','0658','0657','0559','0382'
What I want:
'1224','1027','1023','784','658','657','559','382'