Previous Topic: OPSDUMP FunctionNext Topic: OPSECURE Function


Values OPSDUMP Returns

OPSDUMP returns the return code from the SDUMP service routine. The return code is 0 in most cases. However, when an OPS/REXX program that is not in supervisor state calls OPSDUMP, no SVC dump occurs and the function returns a value of 8.

Example: OPSDUMP

The following example illustrates how you can use OPSDUMP to take an SVC dump of an address space that causes an MSG rule to execute. The dump also includes CA OPS/MVS private storage. The rule disables itself after it executes, preventing multiple dumps.

)MSG somemsg
)PROC
  qq = OPSDUMP(“This is just a test of OPSDUMP”,”OPS”)
  address AOF “DISABLE” OPSINFO(“MAINPGM”)