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



Peter,

You are telling it that PA_F55EOPR is in USA format. To be USA format, it would be '01/01/2011' (not '20110101'). (USA is mm/dd/yyyy) So indeed, this date is not valid, just as it says.

To make this work with the string you have in PA_F55EOPR, you would do:

MinDteCR = %Date(PA_F55EOPR:*ISO0);

ISO is yyyy-mm-dd. The zero in *ISO0 means there are no date separators.

-SK


On 3/11/2016 9:33 AM, Vidal, Peter wrote:
Hi list!

DPA_F55EOPR S 10A Inz('20110101 ')
DMinDteCR S D DatFMT(*USA)

/free

MinDteCR = %Date((PA_F55EOPR):*USA);

*inlr = *on;

/end-free

It is blowing up with this error: Date, Time or Timestamp value is not valid (C G D F).

TIA,
Peter Vidal
Developer AS400
P: 800-808-1902, x137210 | F: 813-884-2847
9119 Corporate Lake Dr., Suite 300 | Tampa, FL 33634 | www.carecentrix.com<http://www.carecentrix.com/>
[cid:image001.png@01D17B81.7B648D40]


________________________________
This communication is intended only for the use of the individual or entity named as the addressee. It may contain information which is privileged and/or confidential under applicable law. If you are not the intended recipient or such recipient's employee or agent, you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited. If you have received this communication in error, please immediately notify CareCentrix Compliance Hot Line at (877) 848-8229 and notify the sender by electronic mail. Please expunge this communication without making any copies. Thank you for your cooperation.



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.