KB Article #71821

How to avoid space added to CFTvariable when I use the truncation feature ?

Problem

How to avoid space added to CFTvariable when I use the truncation feature ?


Resolution

can be applied to any CFT variable:
&:8IDF will truncate to 8 if the length is greater than 8 or will keep the original length (no space added)
For example:
You receive IDF=TESTMORETHAN8    gives &:8IDF = TESTMORE
You receive IDF=TEST                           gives &:8IDF = TEST              (no trailing space added)