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




On 17/10/2005, at 11:03 PM, Njål Fisketjøn wrote:

Do you think that you need the end element if you specify 0 for the number or elements?

I think specifying zero for the number of Era or Calendar elements is only valid when the DDAT is used to describe a value for which Era and Calendar make no sense. Refer to the table in the MI Reference describing operand type and DDAT field associations. Era and Calendar are not valid for:
        Time
        Pseudo Time
        Date Duration
        Time Duration
        Timestamp Duration
        Year Label Duration
        Month Label Duration
        Day Label Duration
        Hour Label Duration
        Minute Label Duration
        Second Label Duration
        Microsecond Label Duration

DDATs that describe these operand types need only be 100 bytes in length. The manual does not say the Era table and Calendar tables are optional--just not valid and must be zeroed. While it might be possible that a DDAT without zero-filled Era and Calendar tables may work I suspect the intention is that they should be present.

So to answer your specific question: If 0 is specified for the number of Calendar table entries then the end table is not required (because the first entry is effectively an end entry). However a DDAT that describes a Date type or a Timestamp type must have a Calendar table. If using the SAA Calendar then two entries are required. For other Calendars (Julian, Muslim, or Hebrew) I am not certain how many entries are required and the documentation is less than helpful.

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.