|
--- Jon Paris <Jon.Paris@partner400.com> wrote: > >> Good suggestion, (%Check) but I think they are not on the release that > includes that built-in. What was it??? V5 or and later. > > Yup - it was introduced in V5R1 with /free Almost a big ouch. This was what prompted my other question regarding changing the TGTRLS default value for the compilers until we upgrade the prod box to v5r2. So, for now, I'll *have* to use the %scan. As for your suggestion that it would be more appropriate to use %check, I dunno. Looking at your example, I was briefly confused (although others may say there's nothing brief about my confusion!), knowing that CHECK is doing a non-hit type of search. In other words, the %scan returns "true" (I know, greater than zero, but isn't that sometimes synonymous?) if the field I'm testing is in my list of allowable values. It's the opposite way with CHECK. Maybe if it were the only test in an IF statement, but when there are multiple tests, I prefer to look for all "positive" or all "negative" results. Or am I genuinely confused? ;-) Thanks for the suggestion, Jon. - Dan __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.