Hi, Folks. I'm very new to SAS and am having a bit of trouble understanding the differences between SYMPUT, SYMPUTX, SYMPUTN, and SYMGET. I recognize that they all have a relationship to invoking macros but I'm not sure when each is appropriate. Could a more experienced user explain to me how these four functions overlap and how to determine which is most efficient? Included below is some sample code from a program I am trying to interpret as part of a learning exercise. In this specific context, I'm wondering why SYMPUT would be used instead of the other options listed above. data _null_; year = year(date()); prev_year=year(date()) -1; call symput('year', year); call symput('prev_year', prev_year); run; Thank you for your help!
... View more