hi all,
  Cross posting onto this list 

  I am able to run the sample program HWIXMCS1 and getting output. 

  However when i tried to retrieve more information like HWI_DEFCAP, 
HWI_PARTITIONID etc from the HWIQUERY on IMAGE, i am not getting any values for 
the new variables at all. 

  I am not able to find any other samples anywhere in 'google' .. Does anybody 
has got it thru successful ? 

I haven't done much changes, just repeated the queryparm and gave 
HWI_PARTITIONID, HWI_DEFCAP along with sample HWI_OSTYPE after declaring the 
variables. 

char HWI_DEFCAP_value[20];               
char HWI_OSTYPE_value[20];               
char HWI_PARTITIONID_value[20];          
..

..
..
queryparm[0].AttributeIdentifier = HWI_DEFCAP;                
queryparm[0].AttributeValue_Ptr  = &HWI_DEFCAP_value[0];      
queryparm[0].AttributeValueLen=sizeof(HWI_DEFCAP_value);      
queryparm[0].AttributeValueLenReturned = 0;                   
                                                              
queryparm[1].AttributeIdentifier = HWI_OSTYPE;                
queryparm[1].AttributeValue_Ptr  = &HWI_OSTYPE_value[0];      
queryparm[1].AttributeValueLen=sizeof(HWI_OSTYPE_value);      
queryparm[1].AttributeValueLenReturned = 0;                   
                                                              
queryparm[2].AttributeIdentifier = HWI_PARTITIONID;           
queryparm[2].AttributeValue_Ptr  = &HWI_PARTITIONID_value[0]; 
queryparm[2].AttributeValueLen=sizeof(HWI_PARTITIONID_value); 
queryparm[2].AttributeValueLenReturned = 0;                   

 
I get value of OSTYPE as MVS but *BLANK* for other two.

Any help will be appreciated. 

 

________________________________

Thanks and Regards
Shameem K Shoukath
 
 


----- Forwarded Message -----
>From: Shameem .K .Shoukath <[email protected]>
>To: IBM-MAIN <[email protected]> 
>Sent: Friday, February 22, 2013 3:53 PM
>Subject: BCPii question  HWIQUERY on IMAGE
> 
>
>hi all,
>  I am able to run the sample program HWIXMCS1 and getting output. 
>
>
>  However when i tried to retrieve more information like HWI_DEFCAP, 
>HWI_PARTITIONID etc from the HWIQUERY on IMAGE, i am not getting any values 
>for the new variables at all. 
>
>
>  I am not able to find any other samples anywhere in 'google' .. Does anybody 
>has got it thru successful ? 
>
>
>I haven't done much changes, just repeated the queryparm and gave 
>HWI_PARTITIONID, HWI_DEFCAP along with sample HWI_OSTYPE after declaring the 
>variables. 
>
>
>char HWI_DEFCAP_value[20];               
>char HWI_OSTYPE_value[20];               
>char HWI_PARTITIONID_value[20];          
>..
>
>..
>..
>queryparm[0].AttributeIdentifier = HWI_DEFCAP;                
>queryparm[0].AttributeValue_Ptr  = &HWI_DEFCAP_value[0];      
>queryparm[0].AttributeValueLen=sizeof(HWI_DEFCAP_value);      
>queryparm[0].AttributeValueLenReturned = 0;                   
>                                                              
>queryparm[1].AttributeIdentifier = HWI_OSTYPE;                
>queryparm[1].AttributeValue_Ptr  = &HWI_OSTYPE_value[0];      
>queryparm[1].AttributeValueLen=sizeof(HWI_OSTYPE_value);      
>queryparm[1].AttributeValueLenReturned = 0;                   
>                                                              
>queryparm[2].AttributeIdentifier = HWI_PARTITIONID;           
>queryparm[2].AttributeValue_Ptr  = &HWI_PARTITIONID_value[0]; 
>queryparm[2].AttributeValueLen=sizeof(HWI_PARTITIONID_value); 
>queryparm[2].AttributeValueLenReturned = 0;                   
>
>
> 
>I get value of OSTYPE as MVS but *BLANK* for other two.
>
>
>Any help will be appreciated. 
>
>
>
>________________________________
>
>Thanks and Regards
>Shameem K Shoukath
> 
> 
>
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to