and for the 062:Specific Information for This Return Code
The last request to close this data set was not completed successfully. (OPENIND is on in the catalog). A previous VSAM job might have ended abnormally and left the data set open. This is a normal message for system data set during IPL.
System Action: OPEN processing continues. The error flag (ACBERFLG) in the ACB (access method block) for the data set is set to 116 (X'74').
Application Programmer Response: If the error occurred at a time other than during IPL, use the access method services VERIFY command to make sure the end-of-file marker in the data set entry in the catalog is correct. Note that it is not valid to use VERIFY on a linear data set. If you ignore the warning and try to process the data set, the results are unpredictable. For example, you could cause lost records. If you use the VERIFY command, this message can appear when VERIFY processing opens the data set. If VERIFY processing then successfully closes the data set, it issues condition code 0.
What this all means is that the last process to open the VAM file did not successfully close it. Unless you can identify which process (started task, TSO user, batch job, or whatever) did this, you have absolutely no hope of completely resolving this.Specific Information for This Return Code
VERIFY has been successfully run by OPEN to determine the end of a VSAM data set which was not previously closed successfully.
System Action: OPEN processing continues. The error flag (ACBERFLG) in the ACB (access method block) for the data set is set to 118 (X'76'). If the data set was opened for output, then the catalog will be updated when the data set is successfully closed. If the data set is opened for input, the catalog will not be updated by close and VERIFY will again be run by OPEN the next time the data set is opened.
Application Programmer Response: The last request to close this data set was not successful. OPEN has attempted to verify the end of the data set and the VERIFY completed without errors. The catalog will be updated when the data set has successfully been opened for output and then successfully closed. You should verify that all of the expected records are in the data set. For additional information on VERIFY processing, see z/OS DFSMS Using Data Sets.
Depending upon your site and precisely what is causing the messages, it may not be possible to prevent the messages. You could add an IDCAMS step to your JCL to run a VERIFY on the VSAM file before your program accesses it, but that does not guarantee you won't get the messages.Can you please tell me, how to prevent those messages? I want to prevent those messages. Please let me know in detail .