Error 1228l
Posted in 1993
Following program, on few run-time production systems is returning error -1228. Page 5-13 of Informix ESQL/C Programmer's Manual (v 5.00) doe snot even document this return code. Re-installing Online & ESQL/C removes the problem. But re-installing software on production systems is :-( !! Use "esql a.ec" to compile on development system & copy executable 1.out on the run-time system. Any ideas/suggestions/modifications/hints can only help!! Bharat O \\/_____ C U T _____ C U T _____ C U T _____ C U T _____ C U T _____ C U T ___ /\\ O /*** Case of Error -1228 ***/ #include <stdio.h> main() { int retcode; long dbdate; char datestr[11]; printf("Give integer date ? "); scanf("%ld", &dbdate); if ((retcode = rfmtdate (dbdate, "yyyy-mm-dd", datestr)) != 0) { printf ("ERROR: rfmtdate %ld, retcode %d\\n", dbdate, retcode); } else { printf ("Success: DbDate %ld, String :%s:\\n", dbdate, datestr); } } #======================================================================== #Informix-OnLine 5.00.UD5 SCO 3.2 #Informix-Isql 4.11.UC1 AST 486/33 #Informix-Esql/C 5.00 #Wingz 1.10 # #Bharat Shah Voice: (508)-663-7570 #Unifi Communications Corp. Fax: (508)-663-7543 #4 Federal St, Billerica, Mass 01821, USA bharat@unifi.com #========================================================================