MVS Programming: Authorized Assembler Services Reference, Volume 4, describes
the VSMLIST macro. One of the functions that you can request is The ranges of
private area that are unallocated.'
I have never used this macro, but think it will do what you ask.
On Dec 6, 2014 11:27 AM, scott svet...@ameritech.net 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
Do a variable GETMAIN (or whatever the modern equivalent is) specifying a
suitable minimum and a horrendous maximum. The system will return both the
address and the actual amount obtained. Save the amount and free the storage.
You may need to repeat for the three different areas: below the
Look at the LDA. Here is how to get to it.
USING PSA,R0
L R3,PSAAOLD POINT AT ASCB
DROP R0
USING ASCB,R3
L R3,ASCBLDA POINT AT LDA FOR THIS TASK
USING LDA,R3
Chris Blaicher
Principal Software Engineer,
But remember that how much has several answers: not only Where? but In
how big a chunk?. Fragmentation can ruin your day...
On Sat, Dec 6, 2014 at 1:20 PM, Blaicher, Christopher Y.
cblaic...@syncsort.com wrote:
Look at the LDA. Here is how to get to it.
USING PSA,R0
L
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: How much storage is left?
But remember that how much has several answers: not only Where? but In how
big a chunk?. Fragmentation can ruin your day...
On Sat, Dec 6, 2014 at 1:20 PM, Blaicher, Christopher Y.
cblaic...@syncsort.com wrote:
Look
What problem are you trying to solve?
Are you getting S878 abends? Some other abends?
If you could explain the details behind the question, we can probably provide
some more detailed suggestions.
Do you have a monitor tool like Tivoli Omegamon, CA Sysview, Mainview, or other?
Lizette