AIPS HELP file for LENGTH in 31DEC18
As of Sat Jun 23 11:29:47 2018
LENGTH: Function verb to return actual current length of string
NO adverbs. Instead, LENGTH takes one argument
where string is any scalar string. The character
position of the last non-blank character in string is
returned on the stack. Note: LENGTH (' ') is 0.
Type: Verb (function: leaves results on the stack)
Use: To obtain the character position of the last non-blank
character in a string adverb. LENGTH requires 1
immediate argument as
where string is any scalar string. Examples:
LENGTH (' ASCAL') is 7.0.
SUBSTR (OUTNAME, 1, LENGTH (OUTNAME)) is the
current OUTNAME string stripped of trailing blanks and
might be used in a procedure as
IF LENG(OUTN) <= 8 THEN;
OUTN = SUBSTR (OUTN, 1, LENG(OUTN)) !! ' CAL'