×
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.
I would like to list the *OUTFILE of DSPOBJD by date.
Since DSPOBJD provides the incredibly ugly date format MMDDYY, I would like to convert it to a date with year 99 going to the end of the descending order.
What is a good method to do this?
Do I have to construct the date such as shown below?
But even then the year 99 pops to the top (it should be at the end).
I think I have to use DATE and CHAR and TRIM to build the date.
How do I force it to take MMDDYY and calc 1900 or 2000?
*MDY??
Is there a simpler, better way? (There must be :))
Thanks!
select ODLBNM,ODOBNM,ODOBTP,
substr(ODCDAT,5,2) || '-' || substr(ODCDAT,1,2)
|| '-' || substr(ODCDAT,3,2)
as CreateDate,
ODOBTX
from qtemp/dspqry
order by CreateDate desc
______________________________________________________________________
This outbound email has been scanned for all viruses by the MessageLabs Skyscan service.
For more information please visit
http://www.symanteccloud.com
______________________________________________________________________
As an Amazon Associate we earn from qualifying purchases.