Re: "Philosphical" question on "succesful" file status testing



docdwarf@xxxxxxxxx wrote:
In article <M_M4g.173857$zy2.141605@xxxxxxxxxxxxxxxxxxxxxx>,
William M. Klein <wmklein@xxxxxxxxxxxxxxxxx> wrote:

As a follow-up to another thread and NOT expecting consensus of opinion, I thought I would ask this question:

When is it a "good" thing to test only the first character for "0" versus testing for specific file status codes?


Why... when the person who signs your timesheets tells you it is, of course!

DD
I think it might be right on.
When I look at a list of status codes in my IBM Manual the second digit or character depends on the first character. The first character has one meaning and the second has a separate meaning, but it depends on the first letter. I would have to look at the acutal IBM REDBOOK or a manual and see how many codes start with Zero. I think only '00' starts with zero but I am at home right now and dont know off the top of my head. I always use '00'. Maybe if you read a lot of records that might speed it up. If you are opening a file you will not save much time, but if you are looking at a read it might save some time.

.


Quantcast