|
Hello, > Should the following two if blocks get the same result? > If %addr(autToPgm) <> *null > ... do someting > endif > > if %parms >= 6 > ... do something > endif No, they do two completely different things, they should get different results. The first method (%addr) is checking for options(*omit). The second method (%parms) is checking for options(*nopass) > I getting the Pointer not set for location referenced error when using > %addr. However, It does not happen all the time. Sometime it work. > Sometime it doesn't. When it works it's just because you got lucky. When you use the %addr() method with an options(*nopass) parameter, you MUST first check %parms. If you don't, you'll be checking memory that's allocated to something else -- and if you're lucky, it may happen to be *NULL. But if not, it could be anything.
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.