|
date: Sun, 20 Jan 2008 09:37:47 -0000is
from: "Paul Tuohy" <tuohyp@xxxxxxxxxxxxxxxxx>
subject: RE: Embedded SQL date in DS array problem
Hi Chuck,
Thank you, you hit on a solution - it is for all the wrong reasons and
should not be so but it is a solution <g>
When you have a date field in DS array (or MODS) host variable it looks as
if the pre-compiler ignores the SET OPTION DATFMT = *ISO directive and the
default DATFMT(*ISO) on the H Spec.
(Chuck, in RPG IV the default format for date fields defined in a program
specified using the DATFMT keyword on the H SPEC. If the DATFMT keyword is
not present it defaults to *ISO. This is not the same as the old UDATE and
*DATE stuff that defaults to *JOB).
The program compiles if
1. (As Chuck discovered) I specify DatFmt(*ISO) on the Date field and
compile with DATFMT(*JOB)
2. I specify DatFmt(*ISO) on the H Spec and compile with DATFMT(*JOB)
I can honestly say that over the years the pre-compiler has wasted more of
my time than anything else on the system :-(
One more to the list of "this sucks".
Regards
Paul Tuohy
ComCon
www.comconadvisor.com
www.systemideveloper.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.