Jeffrey Deaver of the IBM Mainframe Discussion List <[email protected]>
wrote on 01/19/2010 01:34:11 PM:

>  ST    R5,SAVER5
>  GETMAIN EC,LV=(5),A=TABLADDR,SP=2
>
> L     R5,SAVER5
> FREEMAIN R,LV=(5),A=TABLADDR,SP=2
>
> SAVER5   DC    F'0'
>
> So I think I have the form right, its not complaining about the FREEMAIN
> being invalid anymore, but its also not working as I would expect it.
> Initially, it was complaining because I did not have a subpool specified,
> and SP0 was being used, and my program can not free subpool 0 space.
> Watching the job execute in the landmark activity monitor, the storage
> being consumed is still from SP0 and the freemain is obviously not doing
> what its suppose to.   I know I get to the statement, because if I screw
up
> the form, it complains when it is executed, but the storage in SP0 keeps
> heading up.
>
> So - any ideas why it isn't grabbing storage from SP2, and why the
FREEMAIN
> isn't working?  Mmmmm.....
>
> On the flip side.   I was thinking there might be a way in the REXX
script
> that calls this thing in a loop to 'reset' itself each time - like its a
> step end, but not really since I can't lose the other REXX variables I'm
> using in there.
>

Let me take a SWAG at this.  You do not need to specify the SP keyword
parameter on the GETMAIN/FREEMAIN macros, but that is not the problem.  Are
you sure the FREEMAIN is being executed?  Do you have it before the exit
code?

For example...

L     R5,SAVER5
FREEMAIN R,LV=(5),A=TABLADDR,SP=2
L     R13,4(R13)
RETURN (14,12),RC=0

Regards,
John K

----------------------------------------------------------------------
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

Reply via email to