SeeView Manual
SeeView Language Elements
HP NonStop SeeView Manual—526355-004
5-11
Variables
Variables
You can define three types of symbolic variables in the SeeView environment: integer,
string, and task.
Integer or string variable names can be any combination of alphanumeric characters
up to 16 characters in length. Task variable names can be any combination of
alphanumeric characters up to 15 characters in length.
The VARIABLE statement declares integer and string variables. DECLARE (DEC) and
VARIABLE (VAR) are synonyms that you can use interchangeably.
Integer and string variable scope is global when declared in a section and local when
declared in a procedure.
Global variables remain in effect until another ?SECTION containing a DECLARE
statement is encountered, or indefinitely if ALTER RETAIN is ON. The standard
SeeShell sets the ALTER RETAIN option ON.
The TASK statement declares task variables, and they remain in effect while the
SeeView program is executing. The scope of task variables is global regardless of
where they are declared.
Figure 5-3. SeeView Output From the Program in Example 5-6