Determine memory of AS/400

5 pts.
Tags:
AS/400
AS/400 memory
How can I determine the memory of a AS/400?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

WRKSHRPOOL

Upper left corner will show Memory

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • bvining

    You didn't specify if you wanted to determine the current memory size interactively (as in the WRKSHRPOOL solution given by Rickmcd) or in a program. If in a program the following CL program provides one sample solution:

    Pgm                                                          
    Dcl      Var(&Rcv)      Type(*Char) Len(1024)                
    Dcl        Var(&MemSiz)   Type(*Int)  Len(8) +               
                              Stg(*Defined) DefVar(&Rcv 141)     
                                                                 
    Dcl      Var(&LenRcv)   Type(*Int) Value(1024)               
    Dcl      Var(&ErrCde)   Type(*Int) Value(0)                  
                                                                 
    Call     Pgm(QWCRSSTS) Parm(&Rcv &LenRcv SSTS0200 *NO &ErrCde)
    EndPgm                                                  
         

    After the call to the Retrieve System Status (QWCRSSTS) API the variable &MemSiz will be set to the current memory (in kilobytes) for the partition the program is running in.

    Bruce Vining

    7,070 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: