VMS Help  —  MACRO  /ALPHA  Lexical Operators, %STRING
    Lexical operator for obtaining the value of a lexical string
    symbol.

    Format

      %STRING  (string)

1  –  Argument

 string

    The single argument is of type string. If the argument is the
    name of the lexical string symbol, the value of the lexical
    string symbol is returned. Otherwise, the argument is returned
    unchanged.

2  –  Description

    %STRING is modeled after the OpenVMS DCL lexical function
    F$STRING. %STRING is generally used to obtain the value of
    a lexical string symbol, but you can use it with any string
    argument.

3  –  Example

             FOO = "All the king's horses"
             .PRINT "%STRING(FOO)"

      After lexical processing, the statement appears as:

             .PRINT "All the king's horses"
Close Help