Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

Identify and distinguish among the various types of conditions.

Answered: 1 week ago

Question

2. Discuss various aspects of the training design process.

Answered: 1 week ago