View previous topic :: View next topic
|
Author |
Message |
Amit Goswami
New User
Joined: 06 Jul 2005 Posts: 11 Location: India
|
|
|
|
Hi,
I have one program that opens a VSAM file in input mode and read it randomly. The record key for file is the records of another file that may vary from 1 to 1m.
There are many job that execute this program simultaneously and hence may perform read on VSAM file using keys from their individual file.
Does this affect the processing of job? I mean contention on file opening.
My another question is, since my program is a middle program so I am opening file only once but after reading the records or at the end of processing I am not closing it. Would it affect anything? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Does this affect the processing of job? I mean contention on file opening. |
It could. . . All of the reads will cause contention also.
Quote: |
after reading the records or at the end of processing I am not closing it. Would it affect anything? |
Probably not. I suspect that when the process is finished reading the control file, it ends which wo8uld automatically close the vsam file.
You might want to consider limiting how many of this process might run concurrently if performance is an issue. |
|
Back to top |
|
|
|