ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

as400 model

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • as400 model

    how can AS400 model and OS version number could be seen when we are working in Emulator-Mocha software

    help me soon
    thanks

  • #2
    take a look at system values

    You need to look at system values to get the model of the as400.
    You can use API's to get system values in RPG or RTVSYSVAL In Cl programs.


    To get model

    RTVSYSVAL QMODEL

    To see it type WRKSYSVAL QMODEL

    **VERSION**

    Code:
    Call  QSZRTVPR  (                               +
                      &RcvVar                       +
                      x'00000100'                   +
                      'PRDR0100'                    +
                      '*OPSYS *CUR  0000*CODE     ' +
                      x'00000000'                   +
                    )
    
    ChgVar  &CurRls  %sst( &RcvVar 20 6 )
    
    
    
    
    OR
    
    dspdtaara QSS1MRI
    //
    RTVDTAARA QSS1MRI
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment

    Working...
    X