Alan,

Are you running 6.1 or higher? If so, I wonder if using a derived key would
be of help?

Something in the order of

*CREATE INDEX MYLIB/MYINDEX ON MYLIB/MYTABLE (DATE(MY_TIMESTAMP) AS MY_DATE)
*

Unfortunately, we are stuck here in the dark ages (V5R3), but maybe this
would be doable...

Regards,

Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries
--



On Tue, Apr 12, 2011 at 3:02 PM, Alan Shore <ashore@xxxxxxxx> wrote:

Hi everyone
I have a physical file, that contains a timestamp field (type z)
Is there any way to create a logical over this physical but ONLY using the
date within that timestamp as part of the key?
As always, any and all responses MUCH appreciated

Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 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].