>    DECLARE CURSOR c1 SCROLL CURSOR FOR SELECT SHARES, COMIS FROM EQUIT +
>       WHERE CURRENT OF c1

You have the keyword CURSOR twice.  The first one should be removed.  Also,
unless you need SCROLL (unless you need to scroll backwards as well as
forwards), leave it out.

Also, you don't use WHERE CURRENT in the DECLARE CURSOR statement.  You can use
it later in an UPDATE statement, if you want to update the data in the
currently current record in the cursor.
--
Larry

Reply via email to