Re: Queries ?????
Posted in 1996
[ Hi, [ [ We are working on following platform : [ [ Informix Online : 7.12 [ Informix SQL : 6.03 [ Informix ESQL/Cobol : 7.12 [ Sun : 5.1.1 [ Cobol : Micro Focus [ [ Problems : [ [ 1. In ESQL's using INSERT statements we need to know the exact SQLSTATE [ number when the error happened becoz of DUPLICATE KEY or INSUFFICIENT- [ SPACE. I understand informix returns the SQLSTATE no < 0000 in both [ the above cases. We need two handle the above two cases differently [ in our application. Can somebody suggest how to handle this ? U can check sqlca.sqlcode value ... Informix error message manual contains all error numbers and descriptions .. if ( sqlca.sqlcode ) { if ( sqlca.sqlcode == 100 ) # Duplicate - Please check the manual / finderr { printf("Duplicate value ..\\n"); } else printf("Error is %d ..\\n",sqlca.sqlcode); } [ [ 2. While compiling the demo ESQL/Cobol program (demo2.cob) it gives [ the error "eco_conn" not found in /drive/directory. We are not able [ to compile any ESQL-Cobol program. Can somebody enlighten us on the [ cause of this problem? [ Sorry ...I donna Cobol .... [ 3. A quick One : Any idea about Micro-Focus Cobol, Tuxedo's list [ servers ?? [ [ Thanks in advance, [ Namita [ [ P.S. Please reply to me at namita@tulnepz.unisys.com [ --Peter. \\|||/ Have a nice time ... ( O-O ) *-----------------*-----------*--------.ooo0--(_)-0ooo.--------*--------* Residence : Office : No : 20, 9th Main Siemens Information ( Praveen Nivas ) Systems ltd Subedarapalya 29 , Infantry Road Yeswantpura Empire Infantry Building Bangalore - 22 Bangalore -1 560 022 560 001 Ph : 91-80-286 3548 286 7508 e-mail : mpeter.muc@sni.de .oooO ( ) Oooo. *-----------------*-----------*------------\\ (----( )---------*--------* \\_) ) / (_/