Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
Searched this archive and all over the web (actually reached the
guy at the end and he beat me)
I have this code:
dtodaysDate s 8 0
todaysDate = %dec(%date());
Exec SQL Create Alias QTEMP/OrderHeaderRemote for OHORDHP(REMOTE);
Exec SQL
Insert Into WRKBATRMT
( workFile, workMember, workCMPN, workDIVN, workDPTN
, workCUSN, workORNR)
Select 'OHORDHP', 'REMOTE', ohcmpn, ohdivn, ohdptn
, ohcusn, ohornr
from QTEMP/OrderHeaderRemote
where (20000000 + OHDTET) < todaysDate;
This returns no rows. If I take this code to interactive SQL and
substitute 20100325 for todaysDate, the code works fine.
I have tried making todaysDate as packed, tried casting
(20000000 + OHDTET) and todaysDate as date, as char(8) first
then as date. I have some hair left, so please help me out.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 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.