135 data work.employees;
137 if employee_dept='nontech' then Dept='Humanresources';
NOTE: The data set WORK.EMPLOYEES has 1 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
The assignment statement, employee_dept='nontech'; creates a variable named employee_dept with a value of 'nontech'. To create a new variable Dept with value 'Humanresources,' first the condition must be TRUE - then we can use the assignment statement, Dept='Humanresources';. The following output is created:
The one and only FREE resource for general SAS online training as well as study guides for the SAS Base Certification. My goal is to create the SAS Certification prep guide that I never found but always wanted. This should also be a place to come if you are new to the language but are simply looking for online SAS training.