MikeMcKeown
Programmer
Hello, I'm trying to write a Cobol II program with DB2 to read a few tables, select values from them (i.e. the max / min / most recent) and store them for later use in variables.
Apart from the most recent, I've got a fairly good handle on what SQL is required but in all the other Cobol II programs with DB2 I've seen a cursor has been used, but I can't figure out the purpose of a cursor. Do I need to use cursors for this type of program? If so could someone give me a quick overview please?
Many thanks in advance,
Mike McKeown
Apart from the most recent, I've got a fairly good handle on what SQL is required but in all the other Cobol II programs with DB2 I've seen a cursor has been used, but I can't figure out the purpose of a cursor. Do I need to use cursors for this type of program? If so could someone give me a quick overview please?
Many thanks in advance,
Mike McKeown