the length statement in SAS? -
the following simple sas program:
libname learn = 'c:\books\learning'; data learn.test_scores; length id $ 3 name $ 15; input id $ score1-score3; label id ='student id'; score1='math score'; score2='science score'; score3='english score'; datalines; 1 90 95 98 2 78 77 75 3 88 91 92 ;
my question length statement. so, name $15 mean? variable name? many thanks.
the length statement have define 2 variables. id defined character variable room maximum of 3 characters (bytes). , name defined character room maximum of 15 characters.
nowhere in program assign values variable name blank observations.
note have many semi-colons in label statement. cause last 3 lines of interpreted attempts assign character constants numeric variables score1, score2 , score3. cause error message , values of these variables missing.
Comments
Post a Comment