loaddata - UDM Command
Syntax
loaddata data-element-name=file-path
Description
The loaddata command loads the contents of a data element from a file, instead of setting the contents in a script using the data command.
Parameters
Parameter | Description |
---|---|
data-element-name | Data element into which the file contents is loaded. |
file-path | File from which contents is loaded into the data element. |
z/OS | When issuing loaddata, file_path can be in any of the following formats:
loaddata only handles files on the file system local to the manager. You cannot use loaddata to write files on other systems. |
---|
Examples
If a file called commands.txt has the following contents:
cd / ls -al exit
Issuing the following commands would load the contents of commands.txt into a data element called mydata and print them out:
> loaddata mydata=commands.txt > data print=mydata cd / ls -al exit