ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Data Conversion Exit DLL not found

Post new topic  Reply to topic
 Data Conversion Exit DLL not found « View previous topic :: View next topic » 
Author Message
cheanfeiy
PostPosted: Mon Jun 30, 2003 6:32 pm    Post subject: Data Conversion Exit DLL not found Reply with quote

Apprentice

Joined: 21 Jun 2003
Posts: 26

I've compiled a data conversion exit program called MYFORMAT.dll for W2K. When I put the msg into a local queue, i did specify the Format in MQMD object to be MYFORMAT. I located MYFORMAT.dll under ..\MQSEries\Exits folder. However, when I try out the simple mqget command, MQSeries keep complaining "The library C:\program files\IBM\MQSeries\Exits\MYFORMAT.dll was not
found. The queue manager will continue without this module.". In fact, I've MYFORMAT.dll file in that path.
Why ??? Could anyone please help to explain this?
Back to top
View user's profile Send private message
mrlinux
PostPosted: Tue Jul 01, 2003 9:30 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Without seeing the source and knowing how it was compiled it will be very diffcult to answer this one
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
cheanfeiy
PostPosted: Wed Jul 02, 2003 2:50 am    Post subject: Reply with quote

Apprentice

Joined: 21 Jun 2003
Posts: 26

I not sure how MQSeries handle the data conversion exit DLL. After restart MQSeries service, it seems like it able to find the DLL file. Can some provide some guidance on how to make a function call in data conversion exit DLL?

Assume below is the function created by CRTMQCVX command:
MQLONG ConvertTEST(
PMQBYTE *in_cursor,
PMQBYTE *out_cursor,
PMQBYTE in_lastbyte,
PMQBYTE out_lastbyte,
MQHCONN hConn,
MQLONG opts,
MQLONG MsgEncoding,
MQLONG ReqEncoding,
MQLONG MsgCCSID,
MQLONG ReqCCSID,
MQLONG CompCode,
MQLONG Reason)
{
MQLONG ReturnCode = MQRC_NONE;
MQCHAR szP = 'A';
MQCHAR szQ = 'z';

ConvertChar(5); /* ID */

if(validate(in_cursor, BLOCK_SIZE) == 0)
return (MQRC_FORMAT_ERROR);

ConvertChar(50); /* MSG */

Fail:
return(ReturnCode);
}

FYI, validate is another function defined in another DLL. Having the validate function being commented, data conversion exit works fine. However, MQSeries return "MQGET ended with reason code 2110" if the validate function is enable. why???

please provide some guidance and advice
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jul 02, 2003 5:47 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Quote:
FYI, validate is another function defined in another DLL. Having the validate function being commented, data conversion exit works fine. However, MQSeries return "MQGET ended with reason code 2110" if the validate function is enable. why???

It sounds like validate is failing and causing your code to return 2110, or at least returning an error code back to the MQSeries system that is causing it to return 2110.

So you probably have a bug in validate.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Data Conversion Exit DLL not found
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.