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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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