SVC 022

SVC 022 is a Type 4 SVC that is issued by the OPEN TYPE=J macro. This macro gets a LOCAL lock.

The OPEN macro initializes one or more data control blocks so that their associated datasets can be processed. The TYPE=J option specifies that you have supplied a job file control block (JFCB) to be used during initialization for each data control block. Because the TYPE=J option concerns modifying a JFCB, it should be used only under the system programmer's supervision.

Hints

It is possible to see SVC 022 show a significant amount of wait in the Wait Time by Module report for steps that use tape datasets. The time it takes to mount the first volume of a tape dataset will be reported here.

High CPU or wait in SVC 022 in conjunction with high CPU or wait in SVC 020 (CLOSE) might be caused by multiple opens and closes of the same dataset. If a dataset is used multiple times, it is best to open it once and close it at the end of the job step.

Reference Sources

IBM z/OS MVS Diagnosis Reference

IBM z/OS DFSMSdfp Advanced Services

IBM z/OS DFSMS Using Data Sets

IBM z/OS DFSMS Macro Instructions for Data Sets