Help using Base SAS procedures

Help again!

Reply
Regular Contributor
Posts: 161

Help again!

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.
Super Contributor
Super Contributor
Posts: 3,174

Re: Help again!

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.
Trusted Advisor
Posts: 2,116

Re: Help again!

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
Ask a Question
Discussion stats
  • 2 replies
  • 110 views
  • 0 likes
  • 3 in conversation