Question
Basic SAS coding

2. Use the SAS datasets empdata and raisel to calculate each employees new salary. Employees are to receive a 3% raise or the amount specified in dataset rasel, İ.e. the amount of raise is the amount specified in the dataset raise! or 3% if not specified. Prepare a report which (a) is sorted by LastName, FirstName, NewSalary (b) displays only LastName, FirstName, NewSalary (c) suppresses the observations column (d) uses labels Last Name, First Name, New Salary (e) uses a dollar format for NewSalary
0 0
Add a comment Improve this question Transcribed image text
Answer #1

a. is sorted by LastName, FirstName, NewSalary
(Note Employee is the name of the dataset)
PROC SORT DATA = Employee OUT = Sorted_dept_sal ;
BY LastName FirstName NewSalary;
RUN ;

PROC PRINT DATA = Sorted_dept_sal;
RUN ;

b. displays only LastName, FirstName, NewSalary
PROC PRINT DATA = Sorted_dept_sal;
var LastName FirstName NewSalary;
RUN ;


c. Suppresses the observations column
PROC PRINT DATA = Sorted_dept_sal NOOBS;
var LastName FirstName NewSalary;
RUN ;


d. Uses labels 'Last Name', 'First Name', New Salary
DATA = Sorted_dept_sal;
LABEL   LastName = "Last Name"
   FirstName = "FirstName"
   NewSalary = "New Salary"
PROC PRINT DATA = Sorted_dept_sal label NOOBS;
var LastName FirstName NewSalary;
RUN ;


e. uses a dollar format for NewSalary
DATA = Sorted_dept_sal;
LABEL   LastName = "Last Name"
   FirstName = "FirstName"
   NewSalary = "New Salary"
PROC PRINT DATA = Sorted_dept_sal label NOOBS;
var LastName FirstName NewSalary;
format NewSalary dolloar26.;
RUN ;

Add a comment
Know the answer?
Add Answer to:
Basic SAS coding 2. Use the SAS datasets empdata and raisel to calculate each employee's new...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Basic SAS coding 3. Use the SAS dataset insure to (a) create a new SAS dataset...

    Basic SAS coding 3. Use the SAS dataset insure to (a) create a new SAS dataset insure10 that i. reads in only Name, Company, PctInsured, and BalanceDue 11. outputs records where Petinsured < 100 ii. only retains the variables Name, Company, and BalanceDue (b) based on the results of the last part, create a listing report which i. is sorted by BalanceDue (largest first) ii. displays Name, Company, BalanceDue iii. uses a dollar format for BalanceDue

  • In excel please show formula of how you got the answer and equation. You have the...

    In excel please show formula of how you got the answer and equation. You have the responsibility for making a report to help the company administrators to implement new employee's career plan, providing data to the investment/budget committee. So, you are managing the employee's payroll data from the new division of Data Research, created two years ago to provide the company departments (Marketing, Sales and Operations) with collection/analyze/update/report of real time market information, by making the calculation of their pay...

  • You have recently become the CFO for Beta Manufacturing, a small cap company that produces auto parts

    EX16_XL_COMP_GRADER_CAP_AS - Manufacturing 1.6 Project Description:You have recently become the CFO for Beta Manufacturing, a small cap company that produces auto parts. As you step into your new position, you have decided to compile a report that details all aspects of the business, including: employee tax withholding, facility management, sales data, and product inventory. To complete the task, you will duplicate existing formatting, utilize various conditional logic functions, complete an amortization table with financial functions, visualize data with PivotTables, and lastly...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT