IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

VERIFY Command need help


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
saravanans4

New User


Joined: 01 Sep 2003
Posts: 26

PostPosted: Thu Dec 11, 2008 2:10 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Dec 11, 2008 3:01 pm
Reply with quote

All of the VSAM files in that step / job ?
Back to top
View user's profile Send private message
saravanans4

New User


Joined: 01 Sep 2003
Posts: 26

PostPosted: Thu Dec 11, 2008 3:05 pm
Reply with quote

Yes for all the VSAM files used in the entire job.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Dec 11, 2008 3:11 pm
Reply with quote

That's what I said ........... verify the lot of them
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Dec 11, 2008 5:56 pm
Reply with quote

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
View user's profile Send private message
saravanans4

New User


Joined: 01 Sep 2003
Posts: 26

PostPosted: Fri Dec 12, 2008 11:31 am
Reply with quote

Thanks for the information
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sat Dec 13, 2008 1:28 am
Reply with quote

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
View user's profile Send private message
rahulbank

New User


Joined: 25 Sep 2008
Posts: 66
Location: Bengaluruuuuuu

PostPosted: Thu Jan 29, 2009 1:49 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Jan 29, 2009 4:06 am
Reply with quote

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
View user's profile Send private message
rahulbank

New User


Joined: 25 Sep 2008
Posts: 66
Location: Bengaluruuuuuu

PostPosted: Mon Feb 02, 2009 12:10 am
Reply with quote

Hmmm...ok next time if I face this issue will run the verify once and will keep you posted...
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Feb 02, 2009 3:43 am
Reply with quote

Hello,

You might consider changing the code before the next time. . .

Why deal with a false "abend"?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top