Hi,
There are a few issues with your code.
CONT_CD = SUBSTR(2,5) in CONT_CD;
is not correct syntax. Is this valid in some other language (just curious)? Better would be:
CONT_CD = SUBSTR(CONT_CD,2,5);
But in case the variable CONT_CD is only 5 positions long, this could give messages about an invalid third argument because you reach beyond the end of the string. A safe approach is simply ommiting the third argument, as that indicates "to the end".
CONT_CD = SUBSTR(CONT_CD,2);
Hope this helps,
- Jan.
... View more