View previous topic :: View next topic |
Author |
Message |
meetrb Beginner
Joined: 24 Nov 2003 Posts: 40 Topics: 15
|
Posted: Wed Aug 17, 2005 10:43 am Post subject: VSAM + BLSR |
|
|
Hi,
I have a COBOL program that is processing a VSAM file that is being updated dynamically in the program.
The VSAM file has an alternate index that is also being built during the processing of the file.
The VSAM file has been directed to use the BLSR option with a BUFNI and BUFND value of 10 & 15 respectively.
My problem is that when we try to access a record using the alternate index through a START statement we are not getting the record. It seems that the alternate index is not being updated on the physical file and it is still resident in the buffer.
When we tried to run the job without the BLSR option this record is being accessed correctly.
Is there any way in which we can force the buffer contents to be written to the physical file?
Regards,
Meetrb |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Aug 17, 2005 2:00 pm Post subject: |
|
|
meetrb,
Try coding the following parameters in your JCL and see if it works.
Code: |
BUFSD=32768
BUFSI=32768
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
meetrb Beginner
Joined: 24 Nov 2003 Posts: 40 Topics: 15
|
Posted: Thu Aug 18, 2005 3:33 am Post subject: |
|
|
Hi,
Thanks for the reply Kolusu. We did make some headway but we are getting stuck at another point.
We have a high value record in the VSAM file and the START is being executed as given below:
START FILE-A KEY >= ALTERNATE-KEY
When the high value record is the only record in the file which is greater than the given record then any START executed after this record is always pointing to the high value record.
I still feel that it is a buffer isuue in which the record is being written into the buffer and the buffer access during the START operation is not coming out correctly.
Is there any COBOL command or JCL parameter that can be used in order to force the buffers to be written at periodic intervals into the physical file.
I cam across something about a WRTBFR macro but i am not sure how to use it.
Regards,
Meetrb |
|
Back to top |
|
|
|
|