The wait
command causes all command activity to wait until a particular
job completes. It effectively blocks the command line until the job is finished. For
jobs that require a loaddata
operation, the command line waits only
until the "Load Data" activity is finished. Subsequent analysis jobs are ignored.
Syntax
wait <job>
where <job> can be either a command that specifies a job or a variable that references the command.
Example
This example shows how to specify a loaddata
command as part of the
wait
command.
wait [loaddata delim_conn datafile usdata.txt attr names delimiter . quote \" terminator crlf]
You can create a variable for the loaddata
job and then use the
variable in the wait
command. This blocks the command line until
the loaddata
job completes.
set thisjob [loaddata delim_conn datafile usdata.txt attr names delimiter . quote \" terminator crlf]
wait $thisjob