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:

  • DD name in the format of dd:ddname.
  • dataset name in the format of //’data.set.name’
  • HFS file name in the format of /u/man1a/savedata.out

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:


Issuing the following commands would load the contents of commands.txt into a data element called mydata and print them out: