The set
command assigns a variable. When you use a variable created by
the set
command, the variable must be preceded by a $
(dollar sign) notation.
Syntax
set <variable> [<mtb_admin_command>]
where <variable> is the variable name and <mtb_admin_command> indicates the mtb_admin operation that the variable will reference.
Examples
This command assigns a variable to a loaddata operation.
set thisjob [loaddata delim_conn datafile usdata.txt attr names delimiter . quote \" terminator crlf]
The variable can then be used to obtain details about the operation using this command:
job $thisjob
This example assigns a variable to a createentity operation.
set myentity [createentity delim_conn datafile usdata.txt attr reps delimiter . quote \"]