Published on System iNetwork (http://systeminetwork.com)
Finding String Length in CL
By tzura
Created Jun 26 2003 - 04:00

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 [1].

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 [2]

Copyright © Penton Media

Source URL: http://systeminetwork.com/node/61211

Links:
[1] http://systeminetwork.com/Forums/Thread.cfm?CFApp=55&Thread_ID=34155&mc=5
[2] http://systeminetwork.com/Forums/Index.cfm?CFApp=55&Message_ID=100518