BookmarkSubscribeRSS Feed
Moraes86
Obsidian | Level 7

Hi guys,

I am trying to move the values from column "lot" according to each category in different columns A, B and C, according to respective category (A, B or C)

 

Each column A b and C has the number of the Lots but I would like to substitute the amount of category A (for example 2) by the corresponding Lot ( example Lot 123 and 321).

 

You can see the attach filed and please let me know how I could create this code

 

Thanks,

 

Daniel

 

 

 

2 REPLIES 2
ballardw
Super User

Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.

 

 

Reeza
Super User
Is it ever possible to have values in multiple columns of A, B or C?
Is it only 3 possible categories or will this need to scale to more columns/values?

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
  • 2 replies
  • 510 views
  • 0 likes
  • 3 in conversation