it doesn't seem like the Results of the Class Method are coming back correctly 100% of the time.
This is VERY strange, I would add a test/check if an error occur testing SQLCODE and %msg after &SQL() to see if/when/why it fails.
When using embedded SQL you are not supposed to check/access a returned variable (ExtDisplay in your case) before checking for success/failure via SQLCODE variable.
If you need to check if the query found a row, you should check the SQLCODE value, not ExtDisplay value.
- Log in to post comments