Connect:Direct for OpenVMS Conditional Statements

Conditional statements alter the sequence of IBM® Connect:Direct® Process execution based on the completion of the previous step in the Process. For example, if a file copy fails, the Process may call an external program to generate a console message and stop the Process. If the file copy succeeds, the Process continues with the next step.

The following is the Connect:Direct for OpenVMS Conditional statement format. Refer to Sterling Connect:Direct for OpenVMS Process Parameters for more information.

Label Statement Parameters
optional IF (label condition nn) THEN
    (process steps)
    (alternative process steps)
optional GOTO label