|
You can do this: 1) TODAY = CURRENT(DATE) 2) CURDAT = CHAR(TODAY) 3) CURYMD = '20'||SUBSTR(CURDAT,7,2)|| SUBSTR(CURDAT,1,2)|| SUBSTR(CURDAT,4,2) 4) INPUTDATE=DIGITS(Your YYYYMMDD date field) Then, you can compare CURYMD with INPUTDATE. On the other side, if you want to check for the previous date, I do not know how to handle that in a clean manner in a query. Better then, you can develop a CLP that will have a command that will help you to nicely go back one day and send the parameters to the query. That's more cleaner. I found some help for this part of the solution on: http://search400.techtarget.com/tip/0,289483,sid3_gci1003100,00.html?track=NL-17&ad=490375 My 0.02 cents. Good luck! Peter Vidal PALL Corporation / SR Programmer Analyst, IT Development Group 10540 Ridge Rd., Ste 203, New Port Richey, FL 34654-5111 http://www.pall.com "Knowledge is power. " Sir Francis Bacon (1561-1626), Religious Meditations, Of Heresies, 1597
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.