In reply to Oscar Cortes.

Hi Oscar, great observation. The algorithm loops through the characters in CLIST from position 1 to LENGTH(CLIST). The LENGTH(CLIST) function returns an integer that represents the position of the rightmost non-blank character in CLIST. The ending blank is considered as trailing blank and therefore is removed from consideration. If you want to include blank in CLIST you should place it before any non-blank character. If blank is the only character in the CLIST, you should rather use COMPBL() function.