Midrange News for the IBM i Community

Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
RTVOSVER (Retrieve IBM i Version)
has no ratings.
Published: 16 Mar 2014
Revised: 26 Mar 2014 - 3624 days ago
Last viewed on: 22 Feb 2024 (3949 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


(Sign in to Post a Comment)
Posted by: Viking
Premium member *
Comment on: RTVOSVER (Retrieve IBM i Version)
Posted: 9 years 11 months 2 days 21 hours 45 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.