Features: |
PROC FORMAT statement option: : CNTLIN= Input control data set |
Data set: | WORK.POINTS, created from data lines in the sample code. |
data scale; input begin $ 1-2 end $ 5-8 amount $ 10-12; datalines; 0 3 0% 4 6 3% 7 8 6% 9 10 8% 11 16 10% ;
data ctrl; length label $ 11;
set scale(rename=(begin=start amount=label)) end=last;
retain fmtname 'PercentageFormat' type 'n';
output;
if last then do; hlo='O'; label='***ERROR***'; output; end; run;
proc print data=ctrl noobs;
title 'The CTRL Data Set'; run;
data scale; input begin $ 1-2 end $ 5-8 amount $ 10-12; datalines; 0 3 0% 4 6 3% 7 8 6% 9 10 8% 11 16 10% ;
data points; input EmployeeId $ (Q1-Q4) (evaluation.,+1); TotalPoints=q1+q2+q3+q4; datalines; 2355 S O O S 5889 2 . 2 2 3878 C E E E 4409 0 1 1 1 3985 3 3 3 2 0740 S E E S 2398 E E C 5162 C C C E 4421 3 2 2 2 7385 C C C N ;