Finding String Length in CL

Article ID: 16822

Bert Veening has posted an MI program callable from CL that retrieves the length of a given string. Because CL variables are fixed-length, the routine computes the string length by searching from the last character in the field until a non-blank character is encountered.

The routine and discussion can be found at
http://www.iseriesnetwork.com/Forums/Thread.cfm?CFApp=55&Thread_ID=34155&mc=5.

A discussion of CL code to compute string length is in this thread:
http://www.iseriesnetwork.com/Forums/Index.cfm?CFApp=55&Message_ID=100518

ProVIP Sponsors

ProVIP Sponsors