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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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