Contents - Index


 

Use VarTruncate to remove trailing blanks from the value of a specified variable.

 

VarTruncate may also be entered as VarTrun[cate] or VTrun[cate].

 

Required Operands

 

OBJ is the name of a previously declared varying length character variable.

 

Return Codes

 

OK Successful.

 

Examples

 

Procedure to extract information from the fixed format TaskLibrary display to construct a variable format message.

 

 ------------------------------------------------------------------------

 SET PPDVBL,1

 DCL PARM,CHAR,80,V,M

 DCL TEMP,CHAR,80,V,M

 PARSE PARM

 SETD TEMP,PARM

 VLOWER TEMP

 IFD PARM,NE,TEMP

     EXIT ER,'** PARAMETER MUST NOT CONTAIN UPPERCASE **'

 ------------------------------------------------------------------------