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



Thank you for all responses. There are ways that I can "roll my own" but here is the quote from the v6r1 ILE RPG Language Reference manual (chapter 10, page 228):

"The Y edit code is normally used to edit a 3- to 9-digit date field. It suppresses the leftmost zeros of date fields, up to but not including the digit preceding the first separator. Slashes are inserted to separate the day, month, and year."

Either the manual is wrong or the compiler is.

I will probably move the date to a numeric field and output it.

As always, I appreciate all responses.




"Timothy Adair" <tadair@xxxxxxxxxxxxxxxx> wrote in message news:mailman.407.1312320749.2572.rpg400-l@xxxxxxxxxxxx...
In the printer output specs of my program, I am attempting to suppress the leading zero on a *DATE field. According to the RPG ILE manual (v6r1) I should be able to do this with a "Y" edit code.

Unfortunately, the RPG compiler gives *RNF7059 (Editing is not valid with a field that is not numeric; the Edit Code or Edit Word defaults to blanks).

Am I missing something obvious?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.