z/OS MVS IPCS User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


ADDRESS IPCS Instruction

z/OS MVS IPCS User's Guide
SA23-1384-00

To enter subcommands from a REXX EXEC, use the ADDRESS IPCS instruction. ADDRESS IPCS changes the host command environment to IPCS. The IPCS host command environment is available only when you run the EXEC from an IPCS session.

The example in Figure 1 is a simple REXX EXEC that changes the host command environment to IPCS for all commands and then enters the STATUS and LIST subcommands.

Figure 1. Changing the Host Command Environment to IPCS for All Commands
/* REXX */

Address IPCS

'STATUS'
if rc > 0 then signal Exit
'LIST 0. LENGTH(100)'

Exit: exit

You can also use ADDRESS IPCS for a single command. Figure 2 gives an example.

Figure 2. Changing the Host Command Environment to IPCS for a Single Command
/* REXX */

Address IPCS 'STATUS'
if rc > 0 then signal Exit
Address IPCS 'LIST 0. LENGTH(100)'

Exit: exit

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014