Show Processor Group Directory

Directory .ZIP

These source modules are examples of using the Retrieve License Information (QLZARTV) API to get the processor group of your AS/400 and display it in a message. The SHOPRCGRP CLP and command demonstrate how to use the remaining objects.

The RTVOSLVL command shells the Retrieve Product Information (QSZRTVPR) API. This API is used to retrieve general information about the currently installed OS/400; some of the returned info is later passed to the QLZARTV API. The parms of RTVOSLVL are set to retrieve only the current OS/400 level from the API. That makes the RTVLIBSIZ command pretty limited in use, but it's a reasonable use for how we use it here.

Please read the @GENERAL DISCLAIMER document for any items you should be aware of if you download any of these items.


CLPs

SHOPRCGRP -- Show Processor Group:

This program takes the result of RTVOSLVL, passes some of the info to the QLZARTV API, extracts pieces of info from both APIs and builds a message that shows the processor group, the product ID of the operating system and the current version/release numbers.

CMDs

RTVOSLVL -- Retrieve Product Information (QSZRTVPR) API:

The command definition object source for RTVOSLVL encapsulates the QSZRTVPR API. The command parms are fixed to retrieve only the current operating system code load information from the API. This is a deliberate limitation because this is first only an example and second, well, it works fine for its intended purpose.

SHOPRCGRP -- Show Processor Group:

The command definition object source for SHOPRCGRP encapsulates the SHOPRCGRP CLP. The command has no parameters. An completion message is sent to the message queue of the previous (*PRV) program with the processor group and OS/400 information.