View previous topic :: View next topic
|
Author |
Message |
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
I have not gone through all the replies but if you have never thought of Special Names then you may wants to look into it.
Code: |
SPECIAL-NAMES.
CLASS WS-VALID-NUM IS
'0' THRU '9'
CLASS WS-VALID-CHAR IS
'A' THRU 'I'
'J' THRU 'R'
'S' THRU 'Z' |
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
OK, that's 36 of them. What about the other 59?
Let's say that gives a total of 10 tests. The data is valid, so won't drop out early, so 10 tests per byte per record. Because there is no drop-out, same as a simple (similar) 88 user per byte.
Once you have valid data, validating again is a waste of resources and a complication in programs. You have proposed a neat way of wasting time, but it is still wasting time. |
|
Back to top |
|
|
kunal jain
New User
Joined: 19 May 2011 Posts: 59 Location: India
|
|
|
|
Thanks all for your expert advise / suggestions.
This site really rocks and is very useful to make the coder life easier |
|
Back to top |
|
|
|