Using JCL and control statements to run SPZAP

One way to invoke SPZAP is through the job stream. The JCL statements you need to use when running SPZAP are:

These JCL statements, when used with the control statements in SPZAP control statements, allow greater function for SPZAP.

Also, when running SPZAP, you must consider the region size available to your program. The minimum region size needed to run AMASPZAP is 200 kilobytes.

Usually, no REGION parameter is required on the EXEC statement but REGION=120K (or any other value less than 200K) will cause SPZAP to issue message AMA154I and stop processing with a return code of 16. In addition, SPZAP will issue message AMA154I if the program management binder has too small a region size. This problem might occur if the SYSLIB member is extremely large, when REGION=4M or REGION=6M might be needed.