November 2009
Intermediate to advanced
332 pages
10h 8m
English
Read the value of a character variable and write its value to a numeric variable, and vice versa.
| Featured Step | DATA step |
| Featured Step Options and Statements | INPUT and PUT functions |
Data set PRELIM_RESULTS contains preliminary test results for five test takers. TESTDATE and TEST_VERSION are numeric variables. SCORE is a character variable.
PRELIM_RESULTS
test_
Obs id testdate score version
1 3205 41509 9 40012
2 3019 30109 20 103
3 4310 . 20101
4 4817 . 0 .
5 4182 11032009 18 251
Output 9.1 RECODED_RESULTS Data SetExample 9.1 RECODED_RESULTS test_ Obs id testdate score version 1 3205 04/15/2009 9 40012 ... |
Read now
Unlock full access