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 

What the relation between region and bufno?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Problem Determination
View previous topic :: View next topic  
Author Message
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Mon Apr 24, 2006 3:35 am    Post subject: What the relation between region and bufno? Reply with quote

Hi all,

I ran a pgm specifying region=1024k,then got s878 and reson-code 10,i searched post,and know that because bufno not enough.I haven't specifed bufno,so the bufno should 5,then I think 1024k is not enough for 5 bufno,am I right?
How to compute 5 bufno need xx k?
And 5 bufno for each open statement?or all the 'open's statement using 5 bufno?
Thanks!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Apr 24, 2006 9:15 am    Post subject: Reply with quote

If you get S878 your BUNFO is too much! Code BUFNO=2 or increase the REGION size. Your program may be using up the region so no space left for buffers!

The buffer size is generally the same as BLKSIZE on your file. Multiply BLKSIZE * 5 to see how much region is used by buffers. Each open file needs buffers.

The remaining REGION is used for your program and control blocks.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
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 -> Problem Determination 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