cursors

Ask question on - DataBase Concepts, IBM Mainframe DB2, DB2/UDB, DB2 Tools, SQL , DB2 programming with languages like COBOL, PL1.

Moderators: Kalicharan, Moderator Group

Post Reply
chintu
Member
Posts: 9
Joined: Thu Oct 18, 2007 8:41 pm

cursors

Post by chintu » Wed Oct 31, 2007 6:58 pm

Hai,
I read some basics about cursors and i wanted to know in detail what a cursor does and what are row positoned ,row-set positioned cursors.
and also what r scrollable ,non-scrollable,held and non-held cursors .
I saw the mainframe manuals other than that any links .

thanks in advance.

squid
Member
Posts: 1
Joined: Tue Nov 27, 2007 3:52 pm

cursors

Post by squid » Mon Dec 10, 2007 11:55 am

Hi Chitu,

Cursor is a Progamming device which is used to retrieve one row at a time from the result of a select statement.
As Host language is capable of holding only one row at a time, and select is used in a cobol+db2 program which retreives multiple rows at a time, to bridge between these two conditions, cursor is used.
Cursor now takes each row from the result of a select statement and submits it to the host language. That is how cursor works.
Regards,
Squid

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others