<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: connect to mq from SAS data step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/connect-to-mq-from-SAS-data-step/m-p/598260#M172523</link>
    <description>&lt;P&gt;1.The software needed for CORBA/MSMQ/MQSeries communications is SAS Integration Technologies.&lt;/P&gt;
&lt;P&gt;Since you use EG, your server has this component licenced.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Did you read these pages?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/itech/doc9/dev_guide/messageq/ibmmq/mqfuncs.html" target="_self"&gt;WebSphere MQ CALL Routines&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/15/291.html" target="_self"&gt;Usage Note 15291: MQCONN: failed with reason= -1 when using the SAS Interface to WebSphere MQ&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 20:32:00 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-10-21T20:32:00Z</dc:date>
    <item>
      <title>connect to mq from SAS data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/connect-to-mq-from-SAS-data-step/m-p/598074#M172415</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to connect to an MQ from as sas data step program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found this example code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; data _null_;
   length hconn hobj cc reason 8;
   length rc hod hpmo hmd hmap hdata 8;
   length parms $ 200 options $ 200 action $ 3 msg $ 200;

   hconn=0;
   hobj=0;
   hod=0;
   hpmo=0;
   hmd=0;
   hmap=0;
   hdata=0;
   cc=0;	

   put '---------------- Connect to QMgr --------------';
   qmgr="MQS1";
   call mqconn(qmgr, hconn, cc, reason);
   if cc ^= 0 then do;
      if reason = 2002 then do;
         put 'Already connected to QMgr ' qmgr;
      end;
   else do;
      if reason = 2059 then
         put 'MQCONN: QMgr not available... 
		    needs to be started';
      else
         put 'MQCONN: failed with reason= ' reason;
      goto exit;
      end;
   end;
   else put 'MQCONN: successfully connected to QMgr ' qmgr;

exit: 

run;&lt;/PRE&gt;&lt;P&gt;I am running this code in SAS 9.2 from SAS-EG 4.3 connected to a metadata server just to very that i can connect to our MQ&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering how i should specify hostname, port to the remote Queue just to very the connection. Do i need to have some&lt;/P&gt;&lt;P&gt;module installed to dfo this. ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code returns -1 in reason.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:39:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/connect-to-mq-from-SAS-data-step/m-p/598074#M172415</guid>
      <dc:creator>havmaage</dc:creator>
      <dc:date>2019-10-21T10:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: connect to mq from SAS data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/connect-to-mq-from-SAS-data-step/m-p/598260#M172523</link>
      <description>&lt;P&gt;1.The software needed for CORBA/MSMQ/MQSeries communications is SAS Integration Technologies.&lt;/P&gt;
&lt;P&gt;Since you use EG, your server has this component licenced.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Did you read these pages?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/itech/doc9/dev_guide/messageq/ibmmq/mqfuncs.html" target="_self"&gt;WebSphere MQ CALL Routines&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/15/291.html" target="_self"&gt;Usage Note 15291: MQCONN: failed with reason= -1 when using the SAS Interface to WebSphere MQ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 20:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/connect-to-mq-from-SAS-data-step/m-p/598260#M172523</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-21T20:32:00Z</dc:date>
    </item>
  </channel>
</rss>

