BookmarkSubscribeRSS Feed
TC_
Obsidian | Level 7 TC_
Obsidian | Level 7

This looks neat, thank you! Can you please explain what this line does?

input list :$200. @;

 

And can you please do the splitting starting with

data IN3;
    set IN2;

I tried to copy your do loop but didn't work.

 

I see that you are using "row" to be the categorization. But can you use the Extended Classification as given in IN2 directly? I know I can create a row number for my IN2 dataset and do a simple merge, but is there a way to do the same job without the merge?

 

Thank you!

Tom
Super User Tom
Super User

Start by using PROC TRANSPOSE to move the category name out of the variable name into a variable.  Then you just need to use the inner DO loop to do the splitting.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 16 replies
  • 2217 views
  • 5 likes
  • 4 in conversation