×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I am having trouble with code generated by the SQL precompiler. It has to be something I am doing because this used to work, and as far as I know, nothing has changed for a very long time. we are at V5R4. Here is the relavant portion of the compile listing:
7498 D SQL_00019 139 140A F1300I
7499 D SQL_00020 141 148D DATFMT(*ISO) CURRENTBYDATE
======> aaaaaaaaaaaaaaa
*RNF0525 20 a 014722 The length must be 10 for date format *ISO-.
Note that this was defined as type D with DATFMT(*ISO), but with only 8 characters. This was generated by the SQL precompiler. the host variable CURRENTBYDATE is defined like so:
66 d currentByDate...
67 d s d
Here is the cross-reference listing for CURRENTBYDATE
This is the first EXEC SQL in the program, I checked that.
This has to be a configuration issue or something like that (I Believe) because nothing that I know of has changed for a very long time, and this used to compile properly. Does anypone have any ideas on what might coerce the pre-compiler (RPG 4 SQL precompiler) to define this date field properly? Charles, this is one of those Plex SQL programs.
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.