issac1029 Intermediate
Joined: 10 Dec 2005 Posts: 159 Topics: 75
|
Posted: Mon Apr 24, 2006 3:35 am Post subject: What the relation between region and bufno? |
|
|
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! |
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Mon Apr 24, 2006 9:15 am Post subject: |
|
|
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. |
|