When you share VSAM files without using CA‑L‑Serv, and need to restore or move your VSAM data sets, you need to delete control record zero (0). Use the batch RESET INTEGRITY control statement to do this.
Note: Prior to a Reset Integrity command being processed, the TPX Batch job will issue an exclusive ENQ for the file to be processed. If the ENQ fails, the Reset Integrity job is rejected.
|------------------+
->>--- RESET INTEGRITY ----(--V----- ADMIN1 -----|-----)---><
|-- ADMIN2 ----|
|-- NOTES -----|
|-- MAIL ------|
+-- VIEW ------+
In this statement you specify a VSAM data set (ADMIN1, ADMIN2, MAIL, or VIEW) or the NOTES data set. For example, the following RESET INTEGRITY statement deletes control record zero from ADMIN1 and ADMIN2:
RESET INTEGRITY (ADMIN1 ADMIN2)
Note: When the RESET INTEGRITY statement is executed, the following messages may appear in the batch log:
TPBL1010 VSAM ERA CTLREC 0 RETURN CODE IS 8 TPBL1051 MEANS RECORD ACCESSED NOT ON FILE
These messages indicate that the file did not need to be reset because control record zero has already been deleted. No error has occurred, and your batch file will continue to execute.
|
Copyright © 2013 CA.
All rights reserved.
|
|