Issue the "D A,L" command to display the names of all active address spaces on the mainframe. The response lines are printed by reading the RMSG compound variable.
/*REXX*/
x = EVORXCON('D A,L','RMSG')
if x = 'OK' then
do
do i = 1 to RMSG.0
say RMSG.i
end
end
exit
Issue the "D R,U" command to display the devices that require operator intervention. The response lines are printed by reading the RMSG compound variable. Use the console name "REXXCON", and do not display the command/response on the hardcopy log.
/*REXX*/
x = EVORXCON('D R,U','RMSG',,'REXXCON')
if x = 'OK' then
do
do i = 1 to RMSG.0
say RMSG.i
end
end
exit
|