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

How can a stored procedure access a VSAM file w/o opening the file every time it's called?

How can you have a DB stored procedure access a VSAM file without having to open the file every time the procedure is called? I have a stored procedure written in COBOL, which accesses a VSAM file. It runs in a DB2-established address space. It looks like every time the procedure returns, the VSAM file is closed. Is there a way to keep the VSAM file open even after the stored procedure returns, so the next time the procedure is called it won't have to waste time opening the file again.
I don't know any way around this other than to convert the VSAM file to a DB2 table. But, of course, your VSAM file is probably being used for other purposes, so this might not be a viable option.
This was last published in April 2003

Dig Deeper on IBM DB2 management

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchAWS

SearchContentManagement

SearchOracle

SearchSAP

SearchSQLServer

Close