Retrieving numeric partition ID in SQL

Dan Bale via MIDRANGE-L <[email protected]> Thu, 30 Jul 2026 05:22:24 +0000
Newsgroups gmane.comp.hardware.ibm.midrange
Message-ID <LV0PR15MB72485BC5EB529847DC4ED7A69EC92@LV0PR15MB7248.namprd15.prod.outlook.com>
I need SQL to retrieve the serial number, model, processor feature code, and numeric partition ID.  The first three are system values, easy enough.  The numeric partition ID has escaped resolution so far.  Since I am developing a procedure that uses 3-part naming to run this SQL on all of our systems from one system, I am trying to avoid having to utilize anything that doesn't already exist on the remote systems.  (So, I want to avoid developing an application that needs to be deployed to all of the remote systems.)

In ACS RSS, I tried:
> CL: call qsys/QLZARCAPI;
and this returned two messages with the output in the RSS message pane as well as in the job log.  Are these messages invisible to SQL?

I also tried:
> select qsys2.qcmdexc('call qsys/QLZARCAPI') as callresult from SYSIBM.sysdummy1;
and this returned a result of '1' (success) and two messages with the output in the job log.

I looked at the dlpar_get_info API at https://www.ibm.com/docs/en/i/7.5.0?topic=d-retrieve-partition-information-dlpar-get-info and https://www.ibm.com/support/pages/example-using-dlpargetinfo-api-get-numerical-partition-id-logical-partition-lpar, but not sure how to call it in SQL (if possible).

Ideas appreciated.

- Dan Bale
*** CONFIDENTIALITY NOTICE: The information contained in this communication may be confidential, and is intended only for the use of the recipients named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. ***
-- 
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related questions.

You can help support midrange.com by visiting https://donate.midrange.com and making a contribution.