Using Immediate ISQCCMD Common Command Responses
The immediate command responses cannot be captured with TRAP and WAIT in programs that issue the ISQCCMD command. You can retrieve the immediate HW responses by using a PIPE KEEP stage in your programs. Use 'ISQ.SNMP' as the KEEP name.
In the following REXX example,
the maximum weight that is allowed for a system's LPAR is retrieved
and the HW response report containing this information is displayed:
mytgt = 'KEY4' // our TGT system name //
'ISQCCMD 'mytgt' ICNTL CMD(READ) VAR(PWMX)' // Max weight //
If RC > 0 Then Do // Error occurred //
End // ...more to add //
Else Do // All went well //
'PIPE KEEP ISQ.SNMP | CONS ONLY' // ...display HW report//
End // ...more to add //