![Create an animation with the BY statement in PROC SGPLOT](https://blogs.sas.com/content/iml/files/2016/08/ByAnim.gif)
It is easy to use PROC SGPLOT and BY-group processing to create an animated graph in SAS 9.4. Sanjay Matange previously discussed how to create an animated plot in SAS 9.4, but he used a macro loop to call PROC SGPLOT many times. It is often easier to use the