> you can request an automatic FREEPOOL with a parameter in the DCBE
I've got code that is commented as follows:
FREEPOOL (R4) NOT NEEDED WITH BUFFS ABOVE LINE ???
* SO DOC CLAIMS BUT I GET GETBUF
* FAILURES ON SUBSEQUENT OPENS
It's one of those classic programming things. I suspect I cloned this code
from some other piece of code. Perhaps the GETBUF failure was unrelated but
who wants to take a chance and debug it again? Once burned, twice shy.
The doc for DCBE RMODE31=BUFF says
In releases prior to DFSMS/MVS 1.1, FREEPOOL is typically issued after CLOSE
since CLOSE does not free the QSAM 24-bit buffers. However, if OPEN honors
your request for buffers above the 16 MB line, you should either avoid the
FREEPOOL macro, or reassemble the program with the FREEPOOL macro. At
DFSMS/MVS 1.1, the FREEPOOL expansion tests whether the buffer pool exists
before attempting to free it.
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Shmuel Metz (Seymour J.)
Sent: Wednesday, January 20, 2010 12:26 PM
To: [email protected]
Subject: Re: Getmain Freemain?
In <[email protected]>, on
01/19/2010
at 01:46 PM, "McKown, John" <[email protected]> said:
>Do you have any OPEN's for DCBs using QSAM? That will acquire buffers, I
>think that they're in SP0. You need to do a FREEPOOL immediately after
>you CLOSE the DCB to release them.
Close. You need to do a FREEPOOL when you no longer need the buffer pool.
If you're going to reuse the DCB and the relevant parameters haven't
changed, you can go ahead and use the old buffer pool. Also, I believe
that you can request an automatic FREEPOOL with a parameter in the DCBE.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html