BookmarkSubscribeRSS Feed
R_A_G_
Calcite | Level 5
I would like to use CALL CATX function in the following situation:

An example:

my data is the following:
L1_0+L1_13+L1_14

I need to get this out of it

L1_0 L1_13 L1_14

%let numitem=10;
%let numatt=4;

CALL CATX(" ", Main, OF L1_11--L&numitem._1&numatt.);

How can I add L1_0 to this statement ?


Thank you
R.A.G.
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
You have not shared info about the SAS variable MAIN and its content. Also, it is unclear exactly what SAS variables contain in your DATA step.

Suggest you consider re-posting another REPLY and add this SAS code to your DATA step (using COPY/PASTE to share your exact SAS log, not just partial code info):

PUTLOG _ALL_;
STOP;

Also, consider (from SAS Language DOC) that CATX function can have multiple parameters -- it may be suitable to add L1_0 as then third positional parameter argument to the function call.

Scott Barry
SBBWorks, Inc.
Doc_Duke
Rhodochrosite | Level 12
R.A.G.,

It would also be helpful for the other members of the forum if you used more informative subject lines. "Help again" and "another problem" do not allow us to help more effectively.

Thanks,
Doc Muhlbaier
Duke

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1035 views
  • 0 likes
  • 3 in conversation