SVC 020

SVC 020 is a Type 4 SVC that is issued by the close macro, which closes an open dataset. This macro gets a LOCAL lock.

Close restores the DCB and ACB to what they were before the dataset was opened. Storage acquired during open processing, including the DEB and I/O buffers, is released.

Hints

A large amount of CPU or wait time attributed to SVC 020 can mean that a dataset is being opened and closed more than once. Look at the attribution reports to determine the area of code invoking the close activity. If possible, open the dataset only once and close it at the end of the 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