@StudyBeane wrote:
Yes, thank you, I am extremely new to SAS and didn't realize I had to use use data/set.
In R don't you have to provide some data source before creating a new variable based on existing values?
Pretty much the case in any of the 20+ "programming languages" I have used over the years. No input data = no meaningful output data. The principles wont change but approach will change based on the language used. Such as how to point to the existing data: Set statement for a SAS data set or DATA= for almost every other SAS procedure, and where to put the output: Data statement with the Data step code. Other approaches in other procedures but OUTPUT or OUT= are fairly common but the syntax can vary based on the procedure.
SAS will default to the last created data set as input for many procedures but the Data step still needs a SET statement to do such even if no data set name is provided.
... View more