The create/variable command is used to create a variable.
Windows/OpenVMS Format:
create/variable variable [/qualifiers]
UNIX/Linux Format:
mkvar variable [-qualifiers]
/comment or -comment =comment
/[no]log or -[no]log
/[no]confirm or -[no]confirm
/node or -node=node
/type or -type=var_type
/value or -value=var_value
Windows/OpenVMS:
Schedule> create/variable sch_test_var /value=on
UNIX/Linux:
Schedule> mkvar thanksgiving -value='"1-nov" + 3 weeks + (1 week - ( (adate "1-nov" - "thursday")' -type=expression
/comment or -comment
The COMMENT qualifier is the comment that is associated with a variable.
/[no]confirm or -[no]confirm
CONFIRM requests that the user be prompted prior to any operation to verify that the selected entry is the correct one.
/hostname or -node =hostname
The qualifier specifies what node (either local or remote) you want the operation performed on.
/[no]log or -[no]log
The LOG qualifier causes each completed operation to issue a note to the user.
/type or -type=var_type
The type qualifier modifies the type of the variable. The two types are "string" for a string variable and "expression" for a variable expression.
/value or value=var_value
The VALUE qualifier is used to display the contents of the variable. This value can be any alphanumeric characters up to 256 characters long.