|
wrote:
HI I would like to use Currentdate but it fails with this message:
OLE DB provider "IBMDA400" for linked server "IBSIBM" returned message
"SQL0206: Column CURRENTDATE not in specified tables.
Cause . . . . . : CURRENTDATE is not a column of table *N in *N. If the
table is *N, CURRENTDATE is not a column of any table or view that can be
referenced. Recovery . . . : Do one of the following and try the request
again: -- Ensure that the column and table names are specified correctly in
the statement. -- If this is a SELECT statement, ensure that all the
required tables were named in the FROM clause. -- If the column was
intended to be a correlated reference, qualify the column with the correct
table designator.".
Msg 7321, Level 16, State 2, Line 1
Possibly the issue is using this IBS tool this openquery?
--------------------------------
select * from openquery(IBSIBM, 'select CABANO, CABCRC, CABCTR, CABCUR,
CABKCO, CACLVL, CACOTI,
CACRDT, CACTTP, CADODT, CADOTY, CAEXRT, CAIDNO, CAJONO, CANCRX,
CAPERI, CAREFX, CARSCD, CASCRC, CASCTR, CASTAT, CASTMT, CASYID,
CATIML, CATREF, CATTXT, CATYPC, CAUSER, CAVADT, CAVODT, CAVONO,
CAVOTY ,NANAME from CA1665AFCV.SROCBA,
CA1665AFCV.srolta,
CA1665AFCV.sronam
WHERE CADODT > ''20160210'' AND CADOTY = ''CHK'' and cajono=ctjono
and caperi=ctperi and caidno=ctidno and ctveno=nanum
and CASTAT = ''Y''')
--
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.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
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.