Quantcast
Channel: Net Express / Server Express - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 375

SQL FETCH ABSOLUTE

$
0
0

Hello, this is my first ever post, so here goes:

We are trying to implement a FETCH ABSOLUTE in a MF Cobol program.  Here is what I found:

When I try to code the fetch statement, I can use the following arguments: NEXT, PRIOR, FIRST, and LAST.  However, when I use ABSOLUTE or RELATIVE, it fails compile.  I included the SCROLL option when declaring the cursor.  I read that If the SCROLL is specified in an ISO style DECLARE CURSOR, all FETCH options are supported.  However, I still fail compile using the ABSOLUTE FETCH option.

Here is the cursor declaration:

EXEC SQL
   DECLARE CSRF00 scroll cursor FOR SELECT *
           FROM :WS-NAME-NO-EXTENSION A
END-EXEC

And here is the FETCH ABSOLUTE. 

EXEC SQL
   FETCH ABSOLUTE 2 FROM CSRF00 INTO :dclf00
END-EXEC

So, is my syntax wrong or is ABSOLUTE really not supported.

Thanks in Advance,

Bart


Viewing all articles
Browse latest Browse all 375

Trending Articles