BookmarkSubscribeRSS Feed
Daily1
Quartz | Level 8
data original;
input DETAILS $ TYPE $ DIS $ SE_EMG $ SU_EMG $ group;
datalines;
1 THREATS jal Agri Crops 4
3 OPPORTUNITIES jal Agri Crops 5
2 THREATS jal Agri Crops 5
4 OPPORTUNITIES jal Agri Crops 6
6 WEAKNESS jal Agri Crops 6
5 OPPORTUNITIES jal Agri Crops 7
10 STRENGTHS jal Agri Crops 7
7 WEAKNESS jal Agri Crops 7
11 STRENGTHS jal Agri Crops 8
8 WEAKNESS jal Agri Crops 8
12 STRENGTHS jal Agri Crops 9
9 WEAKNESS jal Agri Crops 9
13 STRENGTHS jal Agri Crops 10
14 STRENGTHS jal Agri Crops 11
15 STRENGTHS jal Agri Crops 12
;
run;

proc sort data=original;
by group;
run;

proc transpose data=original out=transposed;
by group;
id type;
var DETAILS;
run;

i want 

group SE_EMG SU_EMG DIS THREATS OPPORTUNITIES WEAKNESS STRENGTHS
4 Agri Crops Jal 1 3 6 10
5 Agri Crops Jal 2 4 7 11
6 Agri Crops Jal   5 8 12
7 Agri Crops Jal     9 13
8 Agri Crops Jal       14
9 Agri Crops Jal       15
10 Agri Crops Jal        
11 Agri Crops Jal        
12 Agri Crops Jal        
2 REPLIES 2
PaigeMiller
Diamond | Level 26

Please explain this. For group 4 (or any group), where do the numbers under THREATS, OPPORTUNITIES, WEAKNESS and STRENGTHS come from?

--
Paige Miller

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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