Because your embedded SQL (except for the connect using SQLCA_PIS;) statements do not specify a connection it uses SQLCA by default.
Assume you wanted to use SQLCA_pis and not SQLCA ?
Because your embedded SQL (except for the connect using SQLCA_PIS;) statements do not specify a connection it uses SQLCA by default.
Assume you wanted to use SQLCA_pis and not SQLCA ?