Ok, I need some assistance here?.
I?m trying to concatenate fields together and I?m having difficulties because, according to the manual:
The book says?
?If no factor 1 is specified, factor 2 is concatenated to the end of the result field string? ? wrong, doesn?t work for me. All I get it the first field in the result field.
The book says?
If the number of blanks is not specified, the trailing and leading blanks of factor 1 and factor 2 are included in the result. If the number of blanks is specified, however, the trailing blanks of factor 1 are ignored and only as many blanks as specified are included in the result between the last nonblank character in factor 1 and the first character of factor 2. Leading blanks in factor 2 are always included. ? Wrong, losing my blank in position #1 of factor 2.
In the above example, as it sits, I?m losing the blank at the beginning of factor 2, if one exists, so, I tried removing the ?:0?. This gave me a rather unusual outcome where the result field only contained the data contained in SXCN09! All the other data was missing.
Than I tried removing both factor 1 and the ?:0? which also gave me the same result as before.
Either my program has gremlins or the book is wrong!
I?m trying to concatenate fields together and I?m having difficulties because, according to the manual:
The book says?
?If no factor 1 is specified, factor 2 is concatenated to the end of the result field string? ? wrong, doesn?t work for me. All I get it the first field in the result field.
The book says?
If the number of blanks is not specified, the trailing and leading blanks of factor 1 and factor 2 are included in the result. If the number of blanks is specified, however, the trailing blanks of factor 1 are ignored and only as many blanks as specified are included in the result between the last nonblank character in factor 1 and the first character of factor 2. Leading blanks in factor 2 are always included. ? Wrong, losing my blank in position #1 of factor 2.
Code:
MOVELSXCN09 $$IMPT175 $$IMPT CAT SXCN10:0 $$IMPT $$IMPT CAT SXCN11:0 $$IMPT $$IMPT CAT SXCN12:0 $$IMPT $$IMPT CAT SXCN13:0 $$IMPT $$IMPT CAT SXCN14:0 $$IMPT $$IMPT CAT SXCN15:0 $$IMPT MOVEL$$IMPT VDIMPT
Than I tried removing both factor 1 and the ?:0? which also gave me the same result as before.
Either my program has gremlins or the book is wrong!
Comment