load
Load workspace variables from batch job
Description
load( loads all variables from a j)batch job j that ran a script or expression. The
variables are assigned into the current workspace. If a variable in the current workspace
exists with the same name, it is overwritten.
The workspace variables from a job are stored in the location given by the
JobStorageLocation property of the cluster that the job runs on. When
you run load, this data is not removed from the
JobStorageLocation. To remove the workspace data, use the delete function to remove individual tasks or entire jobs.
The load function throws an error if:
The
Stateproperty of the jobjis not'finished'.The
Stateproperty of the jobjis'finished'and one of the tasks given by theTasksproperty of the jobjencountered an error.
Tip
To see if any of the tasks on the job j failed after
encountering an error, check if j.Tasks.Error is empty. If the
returned array is empty, none of the tasks on the job j encountered
any errors.
If some tasks completed successfully, you can use the
OutputArguments property of a task to access the output arguments
of that task directly.
creates a structure
containing variables from the job. For example, S = load(___)S = load(j) loads all
variables from the job j into S.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2008a