The following SAS program is submitted: data WORK
TOTAL; set WORK
SALARY; by Department Gender; if First
then Payroll=0; Payroll+Wagerate; if Last
; run; The SAS data set WORK
SALARY is currently ordered by Gender within Department
Which inserted code will accumulate subtotals for each Gender within Department
Gender B
Department C
Gender Department D
Department Gender Answer: A ------------------------------------- 2
Given the following raw data records in TEXTFILE
TXT: ----|----10---|----20---|----30 John,FEB,13,25,14,27,Final John,MAR,26,17,29,11,23,Current Tina,FEB,15,18,12,13,Final Tina,MAR,29,14,19,27,20,Current The following output is desired: Obs Name Month Status Week1 Week2 Week3 Week4 Week5 1 John FEB Final $13 $25 $14 $27
2 John MAR Current $26 $17 $29 $11 $23 3 Ti