ADDRESS QRW: Using the QMF Command Environment

Note to CICS users

REXX is not supported in QMF CICS; therefore, ADDRESS QRW does not work in the CICS environment.

The REXX language always operates in a command environment that determines the default resolution of your commands. The default command environment is CMS or TSO, depending on your operating system.

When QMF is started, you can establish QMF as the default command environment through the REXX ADDRESS command. You can use this command alone or before a QMF command:

ADDRESS QRW
ADDRESS QRW command

With ADDRESS QRW, QMF remains the default command environment until you issue another ADDRESS command. With ADDRESS QRW command, QMF is the command environment for that command only.

When you are using a QMF procedure with logic, QRW is the default command environment.

Although QMF behaves the same whether you use the callable interface or the REXX command environment, ADDRESS QRW is not part of the SAA Query CPI. Use this command only if you do not plan to port your application to another SAA query environment.

The following example shows how to use the QMF command environment:

Figure 9. Example of using the QMF command environment

·
·
·
call dsqcix "START (DSQSMODE=INTERACTIVE" if dsq_return_code=dsq_severe | dsq_return_code=dsq_failure then exit dsq_return_code ADDRESS QRW "RUN PROC MONDAY_P" if dsq_return_code=dsq_severe | dsq_return_code=dsq_failure then exit dsq_return_code "EXIT" if dsq_return_code=dsq_severe | dsq_return_code=dsq_failure then exit dsq_return_code
·
·
·
[ Previous Page | Next Page | Contents | Index ]