Well I've got this massive select statement... well not beating the 8,192 character limit I wager, but still...
I'm having a problem with the lc_where macro substitution. This SELECT SQL statement works fine until the lc_where variable exceeds 255 characters, then I get an "unrecognizable phrase/keyword" error. This variable adds no more than fifty characters at a time.
SELECT DISTINCT transact.a, transact.b, transact.c, ;
transact.d, transact.e, transact.f, ;
LEFT(transact.g, 20), distrib.h as distamt, ;
distrib.i, distrib.j, distrib.k, distrib.l, ;
distrib.m, Employee.n, Employee.o ;
FROM vice!transact INNER JOIN vice!employee ON employee.p = transact.q ;
INNER JOIN vice!distrib ON transact.a = distrib.r ;
&lcSWCards ;
&lcSWOffices ;
&lc_where ; && trouble variable here
&lc_sort ;
INTO CURSOR historywork
Is there a way around this problem? Thanks again. (Field names one letter for security purposes)
I'm having a problem with the lc_where macro substitution. This SELECT SQL statement works fine until the lc_where variable exceeds 255 characters, then I get an "unrecognizable phrase/keyword" error. This variable adds no more than fifty characters at a time.
SELECT DISTINCT transact.a, transact.b, transact.c, ;
transact.d, transact.e, transact.f, ;
LEFT(transact.g, 20), distrib.h as distamt, ;
distrib.i, distrib.j, distrib.k, distrib.l, ;
distrib.m, Employee.n, Employee.o ;
FROM vice!transact INNER JOIN vice!employee ON employee.p = transact.q ;
INNER JOIN vice!distrib ON transact.a = distrib.r ;
&lcSWCards ;
&lcSWOffices ;
&lc_where ; && trouble variable here
&lc_sort ;
INTO CURSOR historywork
Is there a way around this problem? Thanks again. (Field names one letter for security purposes)