Commands and Statements
You can add commands and conditional statements to a Process statement to perform various functions. When you add a command to a Process, you use the preferences you defined or you set unique values for each command.
Command | Description |
---|---|
Copy | The Copy statement transfers data between two nodes. The Copy statement identifies the source files, applies any pre-transfer attributes such as compression or checkpointing, transfers the file to the destination, and saves the file to the new file name. |
Run Task | You can run programs and commands by adding the Run Task command to a Process. The Run Task command executes programs on the PNODE or the SNODE. |
Run Job | The Run Job command executes batch jobs or commands on the specified node. Jobs submitted using the Run Job command run in the background. The return code associated with the run job statement indicates the success of the Run Job command and not the success of the batch job or command. Use the Run Job command
to perform the following types of tasks:
|
Submit Process | Submits a Process from within an executing Process on the PNODE or the SNODE. To use the Submit statement, the Process must reside on the node you are submitting the Process to. Use the Submit statement to execute a Process on the SNODE which would, in turn, submit a Process to a third node. |
You can use the following conditional statements to perform tasks based on conditions you establish.
Statement | Description |
---|---|
If | The If statement executes a block of statements based on the results of a previous statement. The results are categorized by a return code. The If statement checks the value of the return code and executes the block if the statement is true. You must use the Eif statement (endif) with the If statement. If the conditions of the If statement are not satisfied, use an Else statement to designate the execution of alternate instructions. |
Else | The Else statement defines a block of statements that execute when the If statement is not true. The Else statement is only valid when used in combination with the If statement. |
Endif (Eif) | The Endif statement (Eif) marks the end of the If statement and any statements based on the If condition. The Endif statement is only valid when used in combination with the If statement. |
Goto | The Goto statement executes a jump to a specific statement that occurs later in a Process. This statement cannot be used to loop to a statement earlier in the Process. Use the Goto statement with the step label to define the location of the statement in the Process. |
Exit | The Exit statement bypasses all remaining steps in a Process and ends the Process. |