Q
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.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

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.


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.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close