In this publication titled get length of dataset sas, I have provided a complete image from start to finish ,Please look below