VSAM Data Sets
VSAM Data Sets
If you want to run multiple copies or versions of CA TPX in batch mode or online, you must follow the instructions for sharing data sets in the Installing section. It allows the different versions to share the VSAM administration data sets.
Running Batch concurrently with an online version of CA TPX may cause VSAM file corruption if the VSAM sharing parameters are not set correctly.
Reset Control Record 0
When you share VSAM files
withoutusing 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.
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)
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.