MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Handling VSAM status codes - is it mandatory!

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
Mukunda
Beginner


Joined: 11 Dec 2002
Posts: 46
Topics: 15

PostPosted: Wed May 14, 2003 7:22 pm    Post subject: Handling VSAM status codes - is it mandatory! Reply with quote

In my new shop I see many of the production applications using VSAM KSDS files do not handle status codes...and these applications are running fine. Will this create any problem - any time? Rolling Eyes
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Thu May 15, 2003 12:51 am    Post subject: Reply with quote

If a problem with the dataset occurs the program will not handle the conditions at all. In a CICS environment this can be nasty - if a dataset is closed the program will abort and not tell the user why. Not handling the status codes is probably just lazy programming.
Back to top
View user's profile Send private message Visit poster's website
CaptBill
Beginner


Joined: 02 Dec 2002
Posts: 100
Topics: 2
Location: Pasadena, California, USA

PostPosted: Thu May 15, 2003 5:02 pm    Post subject: Reply with quote

You asked: "Handling VSAM status codes - is it mandatory!"

The answer is no, it is not MANDATORY, but it is not wise if you don't test every time you do something with a file.

Do you know you can define a status field for non-VSAM files also and test them?

If you are reading a sequential file with status, you can still use AT END, but you can also test the status field for 10 as END OF FILE.

warp5's advice is right on. You can test what he said by running a "Level 3 diagnostic". Mr. Green
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mukunda
Beginner


Joined: 11 Dec 2002
Posts: 46
Topics: 15

PostPosted: Fri May 16, 2003 9:34 am    Post subject: Reply with quote

Thanks CaptBill. I know that we can declare status field and check it for non-VSAMs also...but never did it. Smile
Quote:
Not handling the status codes is probably just lazy programming.
Good that MVS has ample tolerance for lazy programming Razz
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Fri May 16, 2003 10:42 am    Post subject: Reply with quote

I work in Tech. Support. and if someone comes to me with a problem somewhere in an application that they have written and they do not check for errors then I normally refuse to help.
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Mon Jun 16, 2003 8:39 pm    Post subject: Reply with quote

Hi Mukunda,

It's kinda like changing lanes without looking in the rearview mirror. Shocked

Regards, Jack.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group