>>INTO CURSOR cu_gtstree ;
>>UNION ;
>>SELECT xgts.rtgts_leit FROM gts02 xgts;
>>WHERE xgts.rtgts_leit IN (165,159,153,150,;
>> 146,141,115,108,105,102,91,85,75,49,41,33);
>>INTO CURSOR cu_gtstree
>
>Oops!
>You need to take the INTO CURSOR cu_gtstree line from the first statement.
Thanks for suggestion, I did this by using nested selectd
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer