If you're using the ATTACH, I don't really know why it isn't releasing the 
storage. But, if you want to try, you can do FREEMAIN the entire 236 and 237 
subpools. But I don't know what impact this might have on other system programs 
which might use those subpools. Example would be:
 
   FREEMAIN RU,SP=236
   FREEMAIN RU,SP=237

>From reading here:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2V2A1/1.8.3

This may not be advisable because these contain the SWA for the job. In note 
12, it says:
<quote>
12. Virtual storage is located within the scheduler work area (SWA). The 
storage is freed at the end of the started task or at initiator termination for 
subpool 236 and at the end of the job for subpool 237. The NSHSPL and NSHSPV 
parameters on the ATTACH or ATTACHX macro invocation used to create the 
currently active task determine ownership of the subpool. If the currently 
active task was given ownership of the subpool, then the TCB of the currently 
active task owns the storage in this subpool. If the currently active task is 
sharing this subpool with the attaching task, then the TCB of the attaching 
task owns the storage in this subpool. For more information, see the 
description of the ATTACH and ATTACHX macros in z/OS MVS Programming: 
Authorized Assembler Services Reference ALE-DYN and the virtual storage 
management topic in z/OS MVS Programming: Assembler Services Guide. For 
additional information about the SWA, see z/OS MVS Initialization and Tuning 
Guide.
</quote>

Seems to me that if you ATTACH the interpreter for each use, the subpools 
should have been freed. You may have found a bug in z/OS.

-- 
John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone *
[email protected] * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]]
> On Behalf Of Mil Hashoul
> Sent: Monday, October 08, 2012 8:39 AM
> To: [email protected]
> Subject: Re: free sub pool 236 or 237 of JES
> 
> I did use this. i have three programs, main called SCAN -> CONV ->
> Interpreter
> SCAN attachX the CONV with NSHSP 237 and 236 and CONV call with BALR
> the
> Interpreter, still I have the dynamical allocation that the INTERPRETER
> do
> still obtained without free.
> 
> 
> On Mon, Oct 8, 2012 at 2:24 PM, McKown, John
> <[email protected]>wrote:
> 
> > I don't know how you are invoking the interpreter, but if you do it
> using
> > an ATTACH[X] facility, then all you need to do is not share sub pools
> 236 &
> > 237 (which normally are not shared anyway). Then all the storage that
> the
> > subtask obtains will automatically be freed when it terminates. This
> is
> > rather simple to do, but just in case, I would do something like:
> >
> >
> >   XC  ECB,ECB
> >   ATTACH EP=...,PARAM=(...),VL=1,
> >          ECB=ECB
> >   ST   1,TCB
> >   WAIT ECB=ECB
> >   DETACH TCB
> >
> > HTH.
> >
> > --
> > John McKown
> > Systems Engineer IV
> > IT
> >
> > Administrative Services Group
> >
> > HealthMarkets(r)
> >
> > 9151 Boulevard 26 * N. Richland Hills * TX 76010
> > (817) 255-3225 phone *
> > [email protected] * www.HealthMarkets.com
> >
> > Confidentiality Notice: This e-mail message may contain confidential
> or
> > proprietary information. If you are not the intended recipient,
> please
> > contact the sender by reply e-mail and destroy all copies of the
> original
> > message. HealthMarkets(r) is the brand name for products underwritten
> and
> > issued by the insurance subsidiaries of HealthMarkets, Inc. -The
> Chesapeake
> > Life Insurance Company(r), Mid-West National Life Insurance Company
> of
> > TennesseeSM and The MEGA Life and Health Insurance Company.SM
> >
> >
> > > -----Original Message-----
> > > From: IBM Mainframe Discussion List [mailto:IBM-
> [email protected]]
> > > On Behalf Of Mil Hashoul
> > > Sent: Monday, October 08, 2012 4:05 AM
> > > To: [email protected]
> > > Subject: free subpool 236 or 237 of JES
> > >
> > > Hi,
> > > How could I free the subpool 236 or 237?
> > > I work under batch and I am calling the converter and the
> interpreter
> > > of
> > > JES, while the batch job is 237 subpool, i work with the converter
> and
> > > the
> > > interpreter with subpool 236, when i finish working with the
> > > interpreter, I
> > > found that lot of the storage of 237 is still hanged on, and it is
> only
> > > released after the main job batch ended, for my case it is not good
> > > since,
> > > i call the interpreter hundred of times at each job.
> > > Any help how could I release that storage?
> > > Regards
> > > Milad Hashoul
> > >
> > > --
> > > "Look in My Eyes you will C the Devil Playin with My Soul"
> > > It depends who leads!!
> > >
> > > -------------------------------------------------------------------
> ---
> > > For IBM-MAIN subscribe / signoff / archive access instructions,
> > > send email to [email protected] with the message: INFO IBM-
> MAIN
> >
> > ---------------------------------------------------------------------
> -
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to [email protected] with the message: INFO IBM-
> MAIN
> >
> 
> 
> 
> --
> "Look in My Eyes you will C the Devil Playin with My Soul"
> It depends who leads!!
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to