1. Sufyan Maghur
  2. PowerBuilder
  3. Friday, 22 September 2023 18:07 PM UTC

We are trying to connect to the mainframe for a legacy PowerBuilder application...

Now I am trying to connect to MQS and getting an error...

I have defined the External Function

Subroutine MQCONN(String QMgrName, Long Hconn, Long CompCode, Long Reason) Library "mqic.dll"

and when I call the Function

MQCONN(is_queue_manager, ll_hConn, ll_CompCode, ll_Reason)

I get the below error (I have the DLL in the application path)

image

Any ideas? Did someone connect to MQS using PowreBuilder?

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 22 September 2023 18:29 PM UTC
  2. PowerBuilder
  3. # 1

Hi Sufyan;

  If you are running in 32 bit mode, I believe that you need the "mqic32.dll" library.

However, you can also now use a REST API call as well for this ...

https://developer.ibm.com/tutorials/mq-develop-mq-rest-api/?mhsrc=ibmsearch_a&mhq=MQ%20Rest%20API

HTH

Regards ... Chris

Comment
  1. Sufyan Maghur
  2. Friday, 22 September 2023 18:34 PM UTC
Thank You Chris... Will use the 32 bit (I will also look into the REST API (I never used it before)
  1. Helpful
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Friday, 22 September 2023 18:14 PM UTC
  2. PowerBuilder
  3. # 2

Are the MQ DLLs in scope for your application? They should be either in your Workspace, or in your %PATH%.

 

Regards,
Francisco

Comment
  1. Sufyan Maghur
  2. Friday, 22 September 2023 18:17 PM UTC
Hi Francisco... Yes the DLL is in the Path
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.