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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1447 views
  • 2 likes
  • 3 in conversation