}From: nbladt@autelca.ascom.ch (Norbert Bladt)
}Subject: Re: -1228 rc from rdefmtdate()???
}Date: Thu, 24 Feb 1994 07:46:32 GMT
}X-Informix-List-Id: <news.5642>
}
}foxj@moscow.cc.bellcore.com (fox,james p) writes:
}>We are using rdefmtdate() and rfmtdate() from a C program to
}>convert dates from character to long integer and back. The
}>following sample code prints rc=-1228 for each call. The
}>error message is "Message number not found in message file."
}>and description relates to 4GL which we are not using.
}
}This problem has a simple solution.
}
}Nobody (incl. me) can imagine why this error code is returned which is not
}even documented for the ..fmtdate() functions ! In addition I can't just
}vaguely understand why Informix is accessing one of the ".iem" files to
}convert dates !
I grant you that it is not obvious, but actually the date conversion
routines do need to access the error message files for some key
information, to wit, the names of the days and the names of the months.
These are message numbers -1200 and -1201, (and +1206 and +1207 give the
full names of the months in 6.00). This is how the information is
internationalized.
Consequently, trying to use those routines without an operational Informix
environment will lead to error messages such as -1228. Indeed, using most
Informix software without an operational Informix environment is likely to
lead to such error messages.
Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>