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...
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...
Thank you both for you help. I went with k5tm's answer and it worked. I have one more question that is pretty basic. I want to put this into to two variables and was wondering if I could do something like below instead of moving or doing another string..into.
STRING PC-L-PAR...
Is there an easy way to concatenate three strings and ignore leading zeros in the concatenation?
For example:
05 PC-L-PAR PIC X(01) VALUE '('.
05 PC-R-PAR PIC X(01) VALUE ')'.
05 PV-STR-CNT PIC S9(10) VALUE ZEROES.
05 HDR06-SALES-01 PIC 9(10) VALUE ZEROS.
PV-STR-CNT =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.