Try using the LPAR attributes (x'01E0') for LPAR number.  
From the MIH/MATMATR in QSYSINC:
#define _MMTR_LPAR_INFO               0x01E0               /* @AAA*/ 
typedef _Packed struct _MMTR_01E0_T {                                 
    char  num_of_partition;           /* Number of partitions      */ 
    char  partition_id;                                               
    char  prim_partition;             /* Primary partition         */ 
    char  Srvc_Partition;             /* Service partition ID  @D0A*/ 
    char  Firmware_Level;             /* Firmware level        @D0A*/ 
    char  reserved1[3];                                               
    char  logical_ser_num[10];        /* Logical serial number     */ 
    char  reserved2[5];               /*                       @C2C*/ 
    int   Cur_Partition_Shared   :1;  /* 0-doesn't use shared  @C0A*/
   /* 1-uses shared procs   @C0A*/                                   
    int   Lpar_Uncapped     :1;  /* 0-LPAR doesn't use               
      uncapped proc             */                                   
   /* 1-LPAR uses uncapped      */                                   
                                      /*   processors          @CEA*/
    int   reserved4              :6;  /*                       @CEC*/
    unsigned short min_processors;    /* Min number of proc.       */
    unsigned short max_processors;    /* Max number of proc.       */
    unsigned short cur_processors;    /* Current num. or proc.     */
    char reserved5[2];                /*                           */
    unsigned int cur_min_memory;      /* Min mem in megabytes      */
    unsigned int cur_max_memory;      /* Max mem in megabytes      */
    unsigned int cur_avail_memory;    /* Available memory in meg   */
    char  min_percentage_int_work;    /* Min. percentage of inter-   
                                         active work load      @02A*/
    char  max_percentage_int_work;    /* max % of inter. work  @02A*/
    char  cur_percentage_int_work;    /* cur % of inter. work  @02A*/
    char  reserved6;                  /*                       @C0A*/
    int   High_Speed_Link        :1;  /* 0-Does not use HSL    @C0A*/
                                      /* 1-uses HSL            @C0A*/
    int   reserved10             :15; /*                       @C0A*/
    int   Internal_Link          :1;  /* 0-Does not use link   @C0A*/
                                      /* 1-uses internal link  @C0A*/
    int   reserved12             :15; /*                       @C0A*/
    unsigned int Min_Proc_Capacity;   /* Min processing cap @C2A*/   
    unsigned int Max_Proc_Capacity;   /* Max pro. capacity     @C2A*/
    unsigned int Cur_Proc_Capacity;   /* Current proc. capactiy@C2A*/
    unsigned int Cur_Avail_Proc_Cap_Shared; /* Current available     
      proc. capaciy in shared pool                                   
       @C2A*/                                                        
    unsigned short Num_Phy_Proc_Shared; /* Num of physical processors
      in shared pool        @C2A*/                                   
    char reserved13[2];               /* Reserved              @C2A*/
         /* Amount of machine hypervisor memory in megabyte units  */
    unsigned int Mach_Hypervisor_Memory;                     /*@D0A*/
    unsigned short Uncapped_Weight;                          /*@DOA*/
         /* Minimum interactive capacity portion for this partition*/
    unsigned short  Min_Portion_Int_Work;  /*@D2A*/                  
         /* Maximum interactive capacity portion for this partition*/
    unsigned short  Max_Portion_Int_Work;  /*@D2A*/                  
         /* Current interactive capacity portion for this partition*/
    unsigned short  Cur_Portion_Int_Work;  /*@D2A*/                  
    char reserved14[4];               /* reserved         @D0A,@D2C*/
} _MMTR_01E0_T;                       /*                       @AAA*/
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Bradley V. Stone
Sent: Tuesday, December 18, 2007 7:43 AM
To: Midrange Systems Technical Discussion
Subject: RE: HELP - Problems Retreiving LPAR Number 10 and Above
I'm using the logical serial number value for everything now.
I am assuming since serial number is 8, and logical serial number is 10,
that gives you a few possibilities for a number of partitions.
What I am finding odd now is a model number MMA or something like that,
instead of a number.  :)
Bradley V. Stone
BVSTools - www.bvstools.com
eRPG SDK - www.erpgsdk.com
As an Amazon Associate we earn from qualifying purchases.