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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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