以下是引用liutaows在2008-8-3 1:46:00的发言:假设A,B所在列的变量名为Parameter而后面的数值所在列的变量名为Value,程序如下
proc transpose data = dataname out = transdata;
var value;
id parameter;
run;
我没有测试 应该没问题
ID statement 可能不行,帮助里关于ID statement 这样写的 Specifies a variable in the input data set whose formatted values name the transposed variables in the output data set. 而且,
Typically, each formatted ID value occurs only once in the input data set or, if you use a BY statement, only once within a BY group. Duplicate values cause PROC TRANSPOSE to issue a warning message and stop.
Typically, each formatted ID value occurs only once in the input data set or, if you use a BY statement, only once within a BY group. Duplicate values cause PROC TRANSPOSE to issue a warning message and stop.
[此贴子已经被作者于2008-8-3 2:10:19编辑过]