View previous topic :: View next topic
|
Author |
Message |
saravanans4
New User
Joined: 01 Sep 2003 Posts: 26
|
|
|
|
In our system recently one job abended with Return code 97. We ran VERIFY for a particular VSAM file and restarted the job. Again the job abended in the same step with RC 97 for another file. Is there any way to find out the file list for which we need to run the VERIFY statement? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
All of the VSAM files in that step / job ? |
|
Back to top |
|
|
saravanans4
New User
Joined: 01 Sep 2003 Posts: 26
|
|
|
|
Yes for all the VSAM files used in the entire job. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
That's what I said ........... verify the lot of them |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Or better yet, change the program to recognize that file status codes 00 and 97 mean the same thing -- the file opened successfully. From the COBOL manual on file status 97:
Quote: |
For VSAM only: OPEN statement execution
successful: File integrity verified. |
so no need to run another verify on the file since COBOL has already done so while opening the file. |
|
Back to top |
|
|
saravanans4
New User
Joined: 01 Sep 2003 Posts: 26
|
|
|
|
Thanks for the information |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Most shops I've been at use Robert's method. We used it way back in the late 80s when converting from VSE to MVS and ISAM to VSAM. |
|
Back to top |
|
|
rahulbank
New User
Joined: 25 Sep 2008 Posts: 66 Location: Bengaluruuuuuu
|
|
|
|
I remember someone telling me to run the verify twice once to open and then to close it properly...not sure how true it is but has worked some times for me... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Verify only needs to be run once. COBOL runs it if needed when opening the file. Whoever told you to run it twice to open and close the file properly either did not know what they're talking about or was playing a joke on you. |
|
Back to top |
|
|
rahulbank
New User
Joined: 25 Sep 2008 Posts: 66 Location: Bengaluruuuuuu
|
|
|
|
Hmmm...ok next time if I face this issue will run the verify once and will keep you posted... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You might consider changing the code before the next time. . .
Why deal with a false "abend"? |
|
Back to top |
|
|
|