The WhileDo command

The Do command enables users to embed processes within other processes. Similar to the DoWhile command, the WhileDo command extends the capabilities of the Do command, enabling users to specify conditional running of processes. Control of the process is handed off to the nested process, and if the condition is met, it is invoked via the WhileDo command. Where the DoWhile command executes a process, then tests for the condition, the WhileDo command always tests for the condition prior to executing the process. The parameters described below can be defined from this window.

Field

Description

Label

Specifies the unique label of this process command. This label allows other commands to branch to this command. The label that you type here appears in the Label column on the EC Gateway Process Window.

Disable command

Disabling the command will allow temporary modification of the process statements. This allows for testing of the statements for error-free robustness. The command that has been disabled will not show in the script file (.pfs file).

While Left

Operand number 1 within execution condition. You can define it by clicking on the arrow icon beside this field. There are four variable choices for this parameter. Clicking on the first choice, LastStatus will populate the field with this option. Clicking on the second choice, FileSize will populate the field with this option. Or you can click on Parameters or Count .

Operator

A mathematical operation to be performed between the two conditional operators. You can select an operation to be performed by clicking on the arrow icon beside this field. The choices include some or all of the following depending on your choice for the While Left parameter:

  • EQ (equals)

  • NE (not equal to)

  • LT (less than)

  • GT (greater than)

  • LE (less than or equal to)

  • GE (greater than or equal to)

Right

Value to be assigned to a variable. You can view and select from different variables by clicking on the arrow icon beside this field. A set of options displays depending on your choice in the While Left field: Successful, Failed, Parameters, Constant, and Count.

Do Process

Unique name of the Process to be embedded. You can select a process from a list of processes by clicking on the arrow icon beside this field. The Select a Process window opens. Double click a listed process.