​
On Dec 6, 2014 11:27 AM, "scott" <[email protected]> wrote:

   In an assembler program how can you find out how much storage/memory is
> remaining?  Do getmains till the return code replies back there is no more?
>
>
>
​Well, I don't know _exactly_ what you want. My initial guess is "how do I
determine the maximum amount of contiguous storage left in the address
space? That is, how many bytes can I request in a single STORAGE OBTAIN and
still have it succeed?"​ In this latter case, just do a conditional
variable GETMAIN with the theoretical maximum possible size (i.e. in
24-bit, ask for 16meg, in 31-bit, ask for 2G, in 64-bit, ask for

In the past, if I want an idea about storage fragmentation, I use VSMLIST:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2A4A0/28.0

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

Reply via email to