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. The syntax is:
|
else |
Provides an alternate path, when used as part of an if statement, if the comparison evaluates to false.
|
while |
Implements a simple while loop.
|
fordata |
Iterates through a data element, once for each line.
|
forfiles |
Iterates through a series of statements for each file found that matches a given file specification.
|
subroutine |
Names a subroutine and defines the script code that becomes associated with that subroutine name.
|
callsub |
Carries out the work of lines of script associated with a subroutine.
|
For an explanation of how these statements are used, see Universal Data Mover Scripting Language.