*ON Define Events for Latent Conditions

*ON %CMD CONTINUE [AFTER INPUT] | SKIP [AFTER INPUT] .label

After the user has taken control of the procedure, CFS will check each input to see if it is a command. If so, the *ON %CMD condition will have been satisfied, and the action in the ON statement will be carried out.

CONTINUE The procedure will be restarted automatically before the first CFS command field input step.

CONTINUE AFTER INPUT

The procedure will be restarted automatically after the first CFS command field input (e.g. even sending an empty CFS mask).

SKIP .label The procedure will be restarted automatically with the first CFS command field input at the specified label.

SKIP AFTER INPUT .label

The procedure will be restarted automatically after the first CFS command field input at the specified label.

Example:

The following procedure opens a connection to $CONSOLE. After returning to the main task of CFS, the Connection will be closed automatically. (*ON %CMD CONTINUE).

OC9$CONSOLE
xxxxx,C'sssss'
*ON %CMD CONTINUE
*DIA
DC9