|
Seems CMPPTRT returns a "not equal" condition when it compares a null value to an unresolved system pointer containing an invalid initial value. Why? Shouldn't this situation return an "equal" condition? In the following little program at the breakpoint, FLAG1 has value "0" while FLAG2 has value "1". Shouldn't FLAG1 have value "1" too, since pointer P and pointer Q are both null and both will fail in a CALLX operand 1? DCL SYSPTR P AUTO INIT("BADNAME!!"); DCL SYSPTR Q AUTO; DCL DD FLAG1 AUTO CHAR(1); DCL DD FLAG2 AUTO CHAR(1); CMPPTRT(I) P, * / EQ(FLAG1); /* becomes "0" */ CMPPTRT(I) Q, * / EQ(FLAG2); /* becomes "1" */ BRK "LOOK"; +--- | This is the MI Programmers Mailing List! | To submit a new message, send your mail to MI400@midrange.com. | To subscribe to this list send email to MI400-SUB@midrange.com. | To unsubscribe from this list send email to MI400-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: dr2@cssas400.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.