Midrange News for the IBM i Community


Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
Chicagoland
RTVOSVER (Retrieve IBM i Version)
has no ratings.
Published: 16 Mar 2014
Revised: 26 Mar 2014 - 3683 days ago
Last viewed on: 25 Apr 2024 (4020 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

RTVOSVER (Retrieve IBM i Version) Published by: Bob Cozzi on 16 Mar 2014 view comments(1)

I've written a little CL command that returns the IBM i VxRyMz level of the operating system.

I use the CEEGPID API to retrieve that information and then return it to the caller.

I'm going to be using this when the next release of IBM i comes out to test things in CL and then avoid using them if they aren't supported at the current release level. I do this now in RPG and in C using this API.

If anyone needs a copy, let me know. It'll be included the next release of the Cozzi APPTOOLS package but it is a stand-alone and fairly simple program so I could post the source just for fun.

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: Viking
Premium member *
CA
Comment on: RTVOSVER (Retrieve IBM i Version)
Posted: 10 years 1 months 2 hours 47 minutes ago

I have a CL that uses QSZRTVPR (with PRDR0100) to give me VxRyMz.  I wouldn't mind seeing your use of CEEGPID to compare.