BookmarkSubscribeRSS Feed
Aayushi_17
Quartz | Level 8

Hi 

i have a table of variables with values missing for some and not missing for some.how to get not missing of these values for all rows.

subject SODIUM_NLOW_VASODIUM_NHIGH_VAPOTASSIU_NLOW_VAPOTASSIU_NHIGH_VACARBDIOX_NHIGH_VACHLORIDE_NLOW_VACHLORIDE_NHIGH_VACARBDIOX_NLOW_VA  
1330      2018
13305030      
13305030      
1330        
1330    2015  
1233  8063    
1233  8063    
1233        
1233        
1233  5323    
1233  5323    
1233        

 

thanks in advance

4 REPLIES 4
andreas_lds
Jade | Level 19

What do you expect as result? One observation for each "subject" with all not missing values?

Aayushi_17
Quartz | Level 8

this how the output should look like

subject SODIUM_NLOW_VASODIUM_NHIGH_VAPOTASSIU_NLOW_VAPOTASSIU_NHIGH_VACARBDIOX_NHIGH_VACHLORIDE_NLOW_VACHLORIDE_NHIGH_VACARBDIOX_NLOW_VA  
13305030    2018
13305030  2015  
1330  8063    
1330  8063    
1330  5323    
1233  5323    
PeterClemmensen
Tourmaline | Level 20

Why should the two first obs of POTASSIU_NLOW_VA still be missing? Please provide a clear logic.

Aayushi_17
Quartz | Level 8
jus keeping the not missing of each variable's...so the missing ones got deleted

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