Tag: sas obs length observation variable

Calculate a SAS Observation Length

Well, I couldn’t find this documented anywhere (someone correct me if I missed it) but the question for the day was how to calculate the SAS Observation Length. After some investigation, here is how it is done (pseudocode):obsLength = Sum of all of you…