Question: Using SAS Create a bonus variable of $ 1 , 0 0 0 . 0 0 for employees who are leads, managers, or directors, and

Using SAS
Create a bonus variable of $1,000.00 for employees who are leads, managers, or directors, and $0 otherwise.
Here is what I did:
Data bonus;
Set employees;
If index(Title, 'Lead', 'Manager','Director') Then Bonus=1000;
Else Bonus=0;
run;
When I run this everything comes up 0 under bonus because the titles are listed as "Engineering manager" or "Lead java engineer" I'm not sure how to sort to find just the lead manager director words

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 Databases Questions!