The DoWhile command

The Do command enables you to run processes within other processes. The DoWhile command extends the capabilities of the Do command, enabling you to specify conditional repeated running of processes. Control of the process is handed off to the nested process when it is invoked via the DoWhile command, until the specified condition is met.

The DoWhile command executes a process, then tests for the condition. The DoWhile command always tests for the condition prior to executing the process. From this window, the following parameters can be defined:

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).

Do Process

Unique name of the Process to be embedded. You can view and select a process from a list of available processes by clicking on the arrow icon beside the field. The Select a Process window is opened and lists the processes available to the user. Highlight a process and click the Select option on the File menu. Alternatively, double click on a listed process.

While Left

Operand number 1 within the execution condition. You can define an operator by clicking the arrow icon beside this field. There are four choices. Choosing the first choice, LastStatus, will populate the field with LastStatus. The second choice, FileSize, will populate the field with FileSize. The third choice is Parameters, and the final choice is Count.

Operator

Operator to be used when testing execution condition. You can define an operator 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), and

  • GE (greater than or equal to)

Right

When the user clicks on the arrow icon beside this field, the following options display based on the parameters previously chosen. The options are Parameters, Count, Constant, Successful and Failed. Successful and Failed define the result of the condition.