Re: Queries ?????
Posted in 1996
namita@tulnepz.unisys.com wrote: :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 ? Assuming SQLSTATE is the same as sqlca.sqlcode we test for -239 for duplicate records. We also test for the isam error -100 sqlca.sqlerrd[1] i think (in 4GL it's sqlca.sqlerrd[2]). I don't know the code for insufficient space, but all this is in TFM. There are several other things you would have to test for as well. Also make sure you test explisitly for 0 as success. There might be positiv numbers as well that means something different. At least there are positiv numbers in the documentation. I don't know about the folowing, but do make sure the group gets to know any solutions you find. :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? :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 Nils.Myklebust@idg.no NM Data AS, P.O.Box 9090 Gronland, N-0133 Oslo, Norway My opinions are those of my company The Informix FAQ is at http://www.iiug.org