We are trying to develop a SAS data step program that can send messages to ActiveMQ message broker following the method outlined at SAS Help Center: FILENAME Statement: JMS Access Method
The code that is being used is as follows.
data _null_;
file 'sasjms' jms
jndiiCtxtFactory='org.apache.activemq.jndi.ActiveMQInitialContextFactory'
jndiProviderURL='failover:(tcp://tu-myhost-01:61616)?jms.prefetchPolicy.queuePrefetch=1&jms.connectionIDPrefix=Analytics'
connfactory='ConnectionFactory'
connopts='topic.sasjms=VirtualTopic.Repossessions';
/* Body of message*/
put "This is a test message.";
run;
The message is successfully posted.
Is there a way the properties section can be populated using SAS Code as shown below
This is best done in JAVA, C++ or python.,
Have a look here https://activemq.apache.org/using-activemq
I haven't done this (what you're describing) before, but my general approach would be to
a) Google to try to find a SAS example. I assume you have already done this but didn't find what you needed.
b) Failing an available SAS example, look up how it is done with other software.
c) Try to replicate with SAS how it is done with other software.
I hope that helps,
Jim
This is best done in JAVA, C++ or python.,
Have a look here https://activemq.apache.org/using-activemq
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.