DTxt s 1024 inz
DTxtOut s 15 inz
TxtOut = %subst(%TrimL(Txt):1:15);
The test program fails on the %subst operation.
RNX0100- Length or start position is out of range for the string operation.
I've never seen this before but is this because all
blanks are removed and the "Txt" field is null or maybe has no point of reference for value?