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



After a little more testing, I figured out that if you don't specifiy a
date separator for the formats that are 'free-form' the system puts the
*JOB separator in the QUSFLD_Entry->Date_Time_Separator field.  So I can
always use the separator from the API for the free-form formats.  

(The separator is blank for formats with a pre-defined separator.)

Original Message:
-------------------------------------------------------
I'm using the QUSLFLD API in OS/400 V4R5 to get info on the fields in a
file.  I'm trying to build a default record image.  My issue is with
dates.  Date types *YMD, *DMY & *MDY do not have 'default' separators
and can use any of ' ', '/', '-', ',' or '.'.  

The API will tell me if the user supplied a seperator in the DDS, but
otherwise it is blank.  The manual says if the user does not supply a
seperator, the system value is used.  I can get the system value, but
how do I determine if the blank in the QUSFLD_Entry->Date_Time_Separator
field is a user chosen value or if I need to use the system value?  (The
manual also states even though there are no default values, the correct
value must be used when populating the field.) 


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.