Procedures with logic

Note to CICS users

Procedures with logic are not available in CICS, as their function depends on REXX.

Procedures with logic let you use the REXX language to perform conditional logic and calculations, build strings, and pass commands back to the host environment.

Procedures with logic have their own REXX variable pool. You can use procedures with logic to get and set QMF global variables. QMF commands in procedures with logic can contain substitution variables.

QMF commands in procedures with logic must be in uppercase regardless of your profile setting.

Substitution variables
The value of a substitution variable is found within the QMF command as it is sent back to QMF. It is resolved at the time each command is executed.

It can refer either to a private procedure variable that exists for the duration of the procedure or to a global variable.

Global variables
The value of the global variable is immediately available to the procedure.

Use the GET GLOBAL command to copy a global variable into a variable, or use the SET GLOBAL command to set new global variables.

Return codes and procedure termination
Success or failure of a command is indicated by a return code. You must test the return code and take appropriate action.

You can move to the ERROR label whenever a nonzero return code occurs by using the SIGNAL ON ERROR statement.

Continuation lines
Indicated by a comma at the end of the previous line. Command keywords and substitution variables cannot span lines.
Comments
Indicated by: /*comment*/
[ Previous Page | Next Page | Contents | Index ]