UDM Scripting Language Statements
The following table lists all of the statements that can be used in the Universal Data Mover scripting language.
Statement | Description |
---|---|
if | Adds conditional branching of UDM commands.
A comparison consists of three parts:
The left\-hand and right\-hand values can be either:
if comparison ... UDM commands ... end
|
else | Provides an alternate path, when used as part of an if statement, if the comparison evaluates to false. if expression ... [else ...] end |
while | Implements a simple while loop. while expression ... end |
fordata | Iterates through a data element, once for each line. fordata variable-name=data-element ... end |
forfiles | Iterates through a series of statements for each file found that matches a given file specification. forfiles logical_name=file_spec [sortby=attribute-name[,ascending|descending]] ... UDM commands ... end |
subroutine | Names a subroutine and defines the script code that becomes associated with that subroutine name. subroutine name [script line 1] ... [script line 2] endsub |
callsub | Carries out the work of lines of script associated with a subroutine. callsub name |
For an explanation of how these statements are used, see Universal Data Mover Scripting Language.