Re: MQCMD_INQUIRE_CHANNEL_STATUS fails with RC: 3065

2003-01-13 Thread Paul Clarke
When I execute the  PCF command MQCMD_INQUIRE_CHANNEL_STATUS using
mqExecute I get the following  error code 3065 MQRCCF_CHL_STATUS_NOT_FOUND.
This has been working for about a  year now, but recently I can't get the
status of a channel. If I use the GUI  explorer I can see the channel
status with no problem, but when I run my C  program I keep getting this
return of 3065. My parameter list is just the  channel name. Does anyone
have any ideas I keep getting this return  code?

Thanks!

Matt

Matt,

If it were me the first thing I would do is trace the command server end.
Make sure that the command server really does receive the message you're
expecting it to see and verify that it is indeed going to the place you
intended. You can send me the trace if you want and I'll take a look.

Cheers,
P.

Paul G Clarke
WebSphere MQ Development
IBM Hursley

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive



MQCMD_INQUIRE_CHANNEL_STATUS fails with RC: 3065

2003-01-10 Thread Long, Matthew Jr. (Inland)




When I execute the 
PCF command MQCMD_INQUIRE_CHANNEL_STATUS using mqExecute I get the following 
error code 3065 MQRCCF_CHL_STATUS_NOT_FOUND. This has been working for about a 
year now, but recently I can't get the status of a channel. If I use the GUI 
explorer I can see the channel status with no problem, but when I run my C 
program I keep getting this return of 3065. My parameter list is just the 
channel name. Does anyone have any ideas I keep getting this return 
code?

Thanks!

Matt


I can't see what's 
wrong with this...


// Create an 
admin bag for the mqExecute 
call. 
// Exit the function if the create 
fails.
mqCreateBag(MQCBO_ADMIN_BAG, adminBag, compCode, 
reason);if (compCode !=MQCC_OK)return 
(-1);

// Create a 
response bag for the mqExecute call, exit the function if the // 
create 
fails.
mqCreateBag(MQCBO_ADMIN_BAG, responseBag, compCode, 
reason);if (compCode !=MQCC_OK)return 
(-1);// Insert the name of the channel to retrieve status 
info on, to be created into the admin 
bag. // This 
will be used by the mqExecute 
call.
mqAddString(adminBag, MQCACH_CHANNEL_NAME, MQBL_NULL_TERMINATED, 
qChannelName, compCode, reason);// Send the 
command to retrieve channel 
information. 
// The mqExecute call creates the PCF structure required, sends it 
to // the command server, and receives 
the reply from the command server into // the response 
bag.
mqExecute(m_Hcon, 
// MQ connection 
handle 
MQCMD_INQUIRE_CHANNEL_STATUS, // Command to be 
executed 
MQHB_NONE, 
// No options 
bag 
adminBag, 
// Handle to bag containing commands 
responseBag, 
// Handle to bag to receive the 
responseMQHO_NONE, 
// Put msg on SYSTEM.ADMIN.COMMAND.QUEUE 
MQHO_NONE, 
// Create a dynamic q for the response 
mqExecuteCC, 
// Completion code from the mqexecute 
mqExecuteRC); 
// Reason code from mqexecute 
call

// Check the 
command server is started. If not 
exit. 
if (mqExecuteRC == 
MQRC_CMD_SERVER_NOT_AVAILABLE){MQDISC(m_Hcon, 
compCode, 
reason);}






Re: MQCMD_INQUIRE_CHANNEL_STATUS fails with RC: 3065

2003-01-10 Thread Bullock, Rebecca (CSC)



Matt, 
could it be caused by a change in channel definition or client application? I 
don't use PCF commands, but I do know that in a Unix environment and running 
runmqsc, if you enter "DIS CHS(client-channel)" and no client channels are 
active you'll get "Status not found". We have an application that used to 
connect and stay connected, but they changed their application and suddenly we 
were seeing "status not found" -- causing some anguish until we found that it 
was OK.

-- 
Rebecca


Rebecca BullockComputer Sciences CorporationMFCoE/Newark 
CS TeamEducational Testing Service AccountPrinceton, NJ 
08541email: [EMAIL PROTECTED] or [EMAIL PROTECTED] 


  -Original Message-From: Long, Matthew Jr. (Inland) 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, January 10, 2003 12:05 
  PMTo: [EMAIL PROTECTED]Subject: 
  MQCMD_INQUIRE_CHANNEL_STATUS fails with RC: 3065
  
  When I execute the 
  PCF command MQCMD_INQUIRE_CHANNEL_STATUS using mqExecute I get the following 
  error code 3065 MQRCCF_CHL_STATUS_NOT_FOUND. This has been working for about a 
  year now, but recently I can't get the status of a channel. If I use the GUI 
  explorer I can see the channel status with no problem, but when I run my C 
  program I keep getting this return of 3065. My parameter list is just the 
  channel name. Does anyone have any ideas I keep getting this return 
  code?
  
  Thanks!
  
  Matt
  
  
  I can't see what's 
  wrong with this...
  
  
  // Create an 
  admin bag for the mqExecute 
  call. 
  // Exit the function if the create 
  fails.
  mqCreateBag(MQCBO_ADMIN_BAG, adminBag, compCode, 
  reason);if (compCode !=MQCC_OK)return 
  (-1);
  
  // Create a 
  response bag for the mqExecute call, exit the function if the 
  // create 
  fails.
  mqCreateBag(MQCBO_ADMIN_BAG, responseBag, compCode, 
  reason);if (compCode !=MQCC_OK)return 
  (-1);// Insert the name of the channel to retrieve status 
  info on, to be created into the admin 
  bag. // This 
  will be used by the mqExecute 
  call.
  mqAddString(adminBag, MQCACH_CHANNEL_NAME, MQBL_NULL_TERMINATED, 
  qChannelName, compCode, reason);// Send the 
  command to retrieve channel 
  information. 
  // The mqExecute call creates the PCF structure required, sends it 
  to // the command server, and receives 
  the reply from the command server into // the response 
  bag.
  mqExecute(m_Hcon, 
  // MQ connection 
  handle 
  MQCMD_INQUIRE_CHANNEL_STATUS, // Command to be 
  executed 
  MQHB_NONE, 
  // No options 
  bag 
  adminBag, 
  // Handle to bag containing commands 
  responseBag, 
  // Handle to bag to receive the 
  responseMQHO_NONE, 
  // Put msg on SYSTEM.ADMIN.COMMAND.QUEUE 
  MQHO_NONE, 
  // Create a dynamic q for the response 
  mqExecuteCC, 
  // Completion code from the mqexecute 
  mqExecuteRC); 
  // Reason code from mqexecute 
  call
  
  // Check the 
  command server is started. If not 
  exit. 
  if (mqExecuteRC == 
  MQRC_CMD_SERVER_NOT_AVAILABLE){MQDISC(m_Hcon, 
  compCode, 
  reason);}
  
  
  
  




** 

This e-mail and any files transmitted with it may contain privileged or 

confidential information. It is solely for use by the individual for whom 

it is intended, even if addressed incorrectly. If you received this e-mail 

in error, please notify the sender; do not disclose, copy, distribute, or 

take any action in reliance on the contents of this information; and delete 

it from your system. Any other use of this e-mail is prohibited. Thank you 

for your compliance.