Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

VERIFY Command need help

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: VERIFY Command need help
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: 8593
Location: Back in jolly old England

PostPosted: Thu Dec 11, 2008 3:01 pm    Post subject:
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    Post subject: Reply to: VERIFY Command need help
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: 8593
Location: Back in jolly old England

PostPosted: Thu Dec 11, 2008 3:11 pm    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Thu Dec 11, 2008 5:56 pm    Post subject:
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    Post subject: Reply to: VERIFY Command need help
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: 1239
Location: Richfield, MN, USA

PostPosted: Sat Dec 13, 2008 1:28 am    Post subject:
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    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Thu Jan 29, 2009 4:06 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Feb 02, 2009 3:43 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts PDSFAST VERIFY - What does it really ... shetttigarvivek JCL & VSAM 1 Tue Nov 29, 2016 9:21 am
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us