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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 690 views
  • 0 likes
  • 3 in conversation