ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to know my AS400 version

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

  • How to know my AS400 version

    Is there a way to retrieve the AS400 version (5.3 5.4 etc.) I run on in a REXX program using any RTV command ?

    thanks

  • #2
    Re: How to know my AS400 version

    Gonen,

    Per Scott Klement... here's a way (CL wise). You can adjust for REXX:


    PHP Code:
    DCL VAR(&CHARVERTYPE(*CHARLEN(9)
    DCL VAR(&VERSIONTYPE(*DECLEN(6)

    . . .

    /* GET OS/400 VERSION */

    RTVOBJD OBJ(QSYS/QCMDOBJTYPE(*PGMSYSLVL(&CHARVER)
    CHGVAR VAR(&CHARVERVALUE(%SST(&CHARVER 2 2) *CAT +
    %
    SST(&CHARVER 5 2) *CAT %SST(&CHARVER 8 2))
    CHGVAR VAR(&VERSIONVALUE(&CHARVER)

    . . .

    IF (&
    VERSION *GE 050100) DO
    /* DO SOMETHING THAT REQUIRES V5R1 OR LATER */
    ENDDO 
    Hope this helps..

    -Rick

    Comment


    • #3
      Re: How to know my AS400 version

      @#%@#%@#%@#% rick..thats verbose

      dspdtaara QSS1MRI

      there is also an api but this is CL--so I didnt repost
      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


      • #4
        Re: How to know my AS400 version

        You're such a Suck-up!

        Comment


        • #5
          Re: How to know my AS400 version

          A Quick Method
          Code:
          [B][B][FONT=Times New Roman,Times New Roman,Times][B][FONT=Arial]DSPDTAARA QUSRSYS/QSS1MRI[/FONT][/B][/FONT][/B][/B]
          The OS version is in positions 1-6 of data area QSS1MRI in QUSRSYS library.
          Philippe

          Comment


          • #6
            Re: How to know my AS400 version

            The first line of your spool files also contains the version of the AS400 machine that you are using.

            WRKSPLF(Take option 5 to display the spool file)
            Thanks
            Sudarshan

            Comment


            • #7
              Re: How to know my AS400 version

              thanks for a great one

              Comment


              • #8
                Re: How to know my AS400 version

                you could also try this :
                "GO LICPGM"
                take option 10 (Display installed licensed programs)
                press F11 (Display release)
                Look for the one whose description is "Operating System/400"

                here you will find the version

                patino
                great programmer never dies....

                patino

                Comment

                Working...
                X