MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VSAM + BLSR

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
meetrb
Beginner


Joined: 24 Nov 2003
Posts: 40
Topics: 15

PostPosted: Wed Aug 17, 2005 10:43 am    Post subject: VSAM + BLSR Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Aug 17, 2005 2:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
meetrb
Beginner


Joined: 24 Nov 2003
Posts: 40
Topics: 15

PostPosted: Thu Aug 18, 2005 3:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group