Hi All,
First of all I apologize for late reply on the topic. I got system and I tried the query which resulted as below
1) If you run the query with count(*) in SPUFI, system will always show SQLCODE +100 and that is posted by seansun. If you try any other query in SPUFI, the SQLCODE shown is always +100 at the end.
2) I tried the query in COBOL with embedded SQL and displayed the SQLCODE which is found to be 000 for SELECT COUNT(*) FROM EMP WHERE EMPNO=9999; though the row with emp no. 9999 is not present in EMP table. And this is because of the scalar function, if you remove count function then the SQLCODE is +100 which is expected one.
Thanks for all your reply to the post!
Chaitnya