BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
thesasuser
Lapis Lazuli | Level 10

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

 

thesasuser_0-1623691559637.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
2 REPLIES 2
jimbarbour
Meteorite | Level 14

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

Sajid01
Meteorite | Level 14

This is best done in JAVA, C++ or python.,
Have a look here https://activemq.apache.org/using-activemq 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1286 views
  • 2 likes
  • 3 in conversation