HP-UX AAA Server A.08.01 administrator's guide (T1428-90072, May 2010)

Table Of Contents
NOTE: If length <number> is not present then the length defaults to the
remainder of the string.
Operation
Returns the requested substring with same type as the source. If the offset is off the
end of the string, then substr returns an empty string.
Example 27-3 Examples Illustrating the Use of the offset Keyword
If Reply-Message = "a string of characters" , then:
Example 1
substr ( Reply-Message offset 0 length 8 )
returns the following string:
a string
Example 2
substr ( Reply-Message offset 16 length 82 )
returns the following string:
acters
Example 3
substr ( Reply-Message offset 12 )
returns the following string:
characters
Example 4
substr ( Reply-Message offset 32 )
returns an empty string.
NOTE: If <attr-spec> refers to an instance that is not present, then a
no-such-instance run-time error is generated.
The before Keyword
Syntax
substr (<attr-spec> before <before-string>)
substr (<attr-spec> before last <before-string>)
Defining a Policy in a Decision File 427