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.
The iQuery.mchInfo() UDTF returns a one row result that contains the machine type, model number, processor group, system serial number system name and other information often needed for software licensing or hardware support.
UDF | Return Type | Description |
mchInfo | TABLE | Returns a list of system related information. |
This UDTF has no parameters.
Column | Type | Description |
MCHTYPE | varchar(4) | The machine type, such as 8202 or 9009 |
MODEL | varchar(4) | The system model number--similar to the QMODEL system value. |
PROCGROUP | varchar(4) | The processor group, e.g., P05, P10, P20, etc. |
FEATURE | varchar(4) | The Feature code of the system, such as EPCK, EP10 |
SRLNBR | varchar(10) | The system serial number. |
SYSNAME | varchar(8) | The system name. |
CPUCOUNT | int | The number of active CORES. |
VRM | varchar(6) | The IBM i OS version and release in text form, VxRyMz format. e.g. V7R4M0 |
VER | dec(7,2) | The IBM i OS version and release in numeric form, e.g., 7.40 |
select * from table (iQuery.mchInfo( )) mi;
The output from the above UDTF is a 1-row resultSet similar to the following:
MCHTYPE MODEL PROCGROUP FEATURE SRLNBR SYSNAME CPUCOUNT VRM VER
8202 E4D P05 EPCK 10-xxxxx IQUERY3 4 V7R3M0 7.30