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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 4 replies
  • 902 views
  • 2 likes
  • 3 in conversation