Question: what is the difference between function and procedure in sas?
Answer: FUNCTIONS vs. The fundamental difference between functions and procedures is that a function expects the argument values to supplied across an observation in a SAS data set. Procedures expects one variable value per observation.