Path to mathematics-sas memo (7), path to mathematics-sas memo
Show variable name
Libname saslib "H: \ sas ";
/* Varnum indicates the name of the variable sorted by the observed position. The default value is in alphabetical order */
DataSaslib. Student;
Input name $ Age Score;
Datalines;
Li Si 25 85.6
Wang Wu 27 98.12
Zhang San 30 78
;
Proc contentsVarnum data = saslib. Student;
Run;
All content of this blog is original, if reproduced please indicate the source http://blog.csdn.net/myhaspl/
Display the variable name of an existing Dataset
Libname saslib "H: \ sas ";
/* Varnum indicates the name of the variable sorted by the observed position. The default value is in alphabetical order */
Proc contentsVarnum data = saslib. Student;
Run;
The following names and numbers after the score indicate the column values
Libname saslib "H: \ sas ";
DataSaslib. test2;
Input id $
Name $3-11
Score15-18;
Datalines;
1 zhangsan25 98.2
2. lisi 29 78.5
3 wangwu 26 87.9
;
Run;
Title "student ";
Proc printData = saslib. test2;
Run;