×
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.
derek gonsalves wrote:
Is there any Op-code for date Range?
I have a date field which is 7,0 in length - 1072207
(Century/month/day/year)
It might seem like a nit but it really is not. It sounds as though you
have a number that you (a human) are interpreting as a date. Look at
the bottom of the compiler listing to see how it's defined. If it's not
a date, then my very strong advice is to convert it to one. In RPG, a
date field is defined with a 'd' data type.
That's important because one can easily use a regular eval with > and <
to determine if your date is within a range. Using a number in the
format above is really hard.
Converting the packed field to a date can be as simple as using the
%date() BIF if you're on a recent compiler version.
--buck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.