January 2018
Beginner to intermediate
582 pages
25h 3m
English
|
Task
|
Example Code
|
|---|---|
|
Subset data
|
if resthr<70 then delete; if tolerance='D'; |
|
Drop unwanted variables
|
drop timemin timesec; |
|
Create or modify a variable
|
TotalTime=(timemin*60)+timesec; |
|
Initialize and retain
a variable
Accumulate values
|
retain SumSec 5400; sumsec+totaltime; |
|
Specify a variable's
length
|
length TestLength $ 6; |
|
Execute statements conditionally
|
if totaltime>800 then TestLength='Long';
else if 750<=totaltime<=800
then TestLength='Normal';
else if totaltime<750
then TestLength='Short'; |
|
Label a variableFormat ... |
Read now
Unlock full access