× 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.



>From: Jim Langston <jlangston@celsinc.com>
>Date: Fri, 15 Feb 2002 11:07:21 -0800
>
>As long as you're passing a date, and not character or numeric, it doesn't
>matter.
>
>Date fields are stored in an internal format that has nothing to do with
the
>date format you're displaying them in.  When you pass a date, you are
>passing the bytes stored in the internal format.
>
>This has been my take, and experience, on date fields anyway.

Jim, it's true that date fields are stored _in the database_ in some
4-byte form.  But the RPG compiler always sees dates in a readable
form like '2002-12-25' or '12/25/02' etc.

What makes the parameter passing work is the fact that the CONST keyword
was coded.  VALUE would also work.  These keywords cause the compiler
to do the required conversions for the parameters to get passed the way
the called procedure expects them.  This is the same thing that helps
CONST and VALUE numeric parameters get passed correctly; you can pass
say a zoned(5,2) to a packed(7,2).

Barbara Morris



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.