Please explain what you mean by “disk unit partition”.
What is “Disk unit”?
Do you mean the LPAR?
If so, the Retrieve Partition Information (dlpar_get_info) API looks to be what you need.
For simple LPAR identification, the Retrieve System Status (QWCRSSTS) API with format SSTS0200 can be the easiest. The Retrieve Partition Information (dlpar_get_info) API is appropriate when the configuration info for an LPAR is needed, but it can take some practice to get full usage of it.
‘Disk Unit’ is a term usually used by the hardware geeks (term of endearment)
you can add DU’s, santise them to DoD standards, etc, but at the software level, they just form part of the storage.
One of the great things about IBMi is that you just don’t need to care about such trivia.
(well, OK, you care – a bit)
F11- disk partitioned 1,2….