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


  • Subject: %Char and Date Fields
  • From: Cyndi Bradberry <CyndiB@xxxxxxxx>
  • Date: Mon, 18 Dec 2000 09:27:06 -0700

Hi,

I have a file with several date fields which I am concatenating into one
long CSV flat file.  In my file, the date fields are defined with
DATFMT(*USA).  I use the %Char BIF to change them into character strings for
concatenation. 

The RPGIV/ILE Manual says:  "For date, time, or timestamp data, the returned
value includes any separator characters. The format and separators of the
result are the same as that of the parameter."

As I understand the above, I should get a character representation of the
date in USA format. However, I am getting ISO format.

My File                 CSV
12/01/1999                      1999-12-01


Any ideas what I might be doing wrong ? 

Thanks,

Cyndi 
Boise, ID
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.