Problem solve Get help with specific problems with your technologies, process and projects.

Working with cursors in COBOL programs

In one of my COBOL programs I'm using a cursor to fetch data from a physical file. Before the upgrade to V5R1 data...

was received in the order in which it was written to PF (FIFO), after the upgrade the retrieval order changed to LIFO. Even though I can avoid this by specifying ORDER BY, what could be the reason for this?

Cursors may be shared throughout an activation group, but there is only one cursor open for the file in COBOL. This may have some effect on how your data is being retrieved.


Search400's targeted search engine: Get relevant information on DB2/400.

The Best Web Links: tips, tutorials and more.

Check out this online event, Getting the Most out of SQL & DB2 UDB for the iSeries.

This was last published in June 2002

Dig Deeper on DB2 UDB (universal databases)

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.