Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8619
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: 8619
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: 8200
Location: East Dubuque, Illinois, USA

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: 1249
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: 8200
Location: East Dubuque, Illinois, USA

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 OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us