|
Can somebody tell me why following SQLRPGLE codes are not working D purgeDate s z C time purgeDate C purgeDate subdur 15:*d purgeDate C/exec sql C+ delete from MyFile where ROTIME < :purgeDate C/end-exec Debug shows the value of PURGEDATE = '2007-03-07-08.59.00.070000' Interactive SQL run fine delete from MyLib/MyFile where ROTIME < '2007-03-07-08.59.00.070000' ROTIME is a timestamp field in MyFile which contain data as ROTIME 2005-05-13-08.55.30.220000 2005-05-13-08.57.00.651000 2005-05-13-08.57.00.846000
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.