×
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.
On 11-Feb-2015 10:01 -0600, Steinmetz, Paul wrote:
I frequently need to compare object last use dates.
Some IBM output files QAEZDISK (use YMD while others (DSPOBJD,
DSPFD) use MDY.
FWiW: My recollection is that the OutFile fields for the Display File
Description (DSPFD) feature, consistently have the date-like values
stored as YYMMDD.
When MDY is used, I'm constantly breaking up the LUD into individual
work fields, MM, DD, YY and then concatenating them back together
with the century for the object date compare.
ODCDATCYMD ODCCEN || ODCDATY || ODCDATM || ODCDATD
Is there a better or easier way of accomplishing this?
The Create Logical File (CRTLF) from DDS and the SQL DDL CREATE VIEW
can be used to give an alternate _logical_ presentation of the data
[even omitting column data that is not of interest]. Each optionally
allows for a keyed Access Path to be created on the derivation of the
data if the /compare/ can take advantage of the Derived Key Index; the
SQL would require a second DDL statement, CREATE INDEX, because a VIEW
is not keyed.
Note: The derived key index can *not* refer to a UDF, so the
expression must be something like the one shown for example, the result
of concatenation of substring of the date-like field; I do not recall
being able to do that easily or if at all using DDS, but IIRC there are
some specific DDS logical mapping that involve the Date Format (DATFMT)
specification.
Note: The Last Used Date supports a value of blanks; mapping the
blanks to the NULL value may be an effective requirement, especially if
the Date data type is the mapped-to\cast-to type. The OS also allows
for some invalid leap dates to be stored for those date-like fields
[because the QLEAPADJ value that was in effect when the /date/
information was stored is not included] that are normally just a string
of digits or possibly blank [when a NULL value is probably more
appropriate to represent a lack of a value being established for that
particular attribute].
As an Amazon Associate we earn from qualifying purchases.
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.