Question: Write an appropriate SAS code that could create the variable bonus of $1,500.00 for employees who are leads, managers, or directors, and $100 otherwise. **NOTE:

  1. Write an appropriate SAS code that could create the variable "bonus" of $1,500.00 for employees who are leads, managers, or directors, and $100 otherwise. **NOTE: The job titles in the dataset contain the terms "leads, managers, directors" such as "Engineering Director" or "Lead Java Engineer".
  2. Write an appropriate SAS code that would create a variable FLast, concatenating the first letter of the first name and the last name separated by a space. For example, "J Smith". Note the upper case of the first letter. **NOTE: I have the appropriate code as follows, but cannot figure out how to implement the space between the first letter and the last name: data Salary; set salaries; FLast=CATS(UPCASE(SUBSTR(first, 1, 1)),' ', last); run;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!