QUESTION How may I intercept a 100 or 0 SQLCODE ? ANSWER To check that a VisualAge query successfully retrieved data, you can check that the "rows" collection size is greater than 0. For example: (self rows size = 0) ifTrue:(..."SQLCODE = 100 logic") ifFalse: (... "SQLCODE = 0 logic") where '( )' surrounding the ifTrue and ifFalse code are brackets.