BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Aphreven
Calcite | Level 5

Hello I would like to do something very simple but that I struggle with : 

 

I have a table with several columns and 1 specifically that have missing values that i want to fill with a backward then a forward fill stragegy based on a ID column. 

 

have : 

ID   colA  colB    Coltofill                       

1      ...        ...                     

1                                                                  

1                               5    

2                              12    

2                              

 

want : 

ID   colA  colB    Coltofill                       

1      ...        ...           5        

1                               5                                   

1                               5    

2                              12    

2                              12

 

More precisely i want to only fill the col "Coltofill". I found a good reponse in this post : https://communities.sas.com/t5/SAS-Programming/Backward-and-Forward-Filling-Information/m-p/699624  But the problem is that it fills every columns. 

 

Thank you !

 

1 ACCEPTED SOLUTION
1 REPLY 1

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

From SAS Users blog
Want more? Visit our blog for more articles like these.
5 Steps to Your First Analytics Project Using SAS

For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 205 views
  • 1 like
  • 2 in conversation