pc.l Processing Code/Restore Processor

pc.l

Command pc.l Processing Code/Restore Processor
Applicable release versions: AP
Category Restore Processor (84)
Description invokes the length function, either restricting processing to values that fall within certain length restrictions or simply displaying the length of a given value.

The "maxlength" parameter indicates that the value will be output only if the length of the string is less than the "maxlength" parameter, otherwise a null is returned. If "maxlength" is 0 (zero), the length of the data is returned.
Syntax l{maxlength{,maxvalue}}
l0
Options
Example
l0  

Returns the length of field. 

l9  

Outputs data if field length is exactly nine characters. 

l3,9

Outputs data if field length is greater than three characters and less than 
nine characters.
Purpose
Related up.input-conversion.adi
pc