如何在 SAS Base 中将 table 的值作为另一个 table 的名称?
How can I put a value of a table as the name of another table in SAS Base?
在 sas base 中我有以下 table:
Regis Book Page
AAA1 book1 127
AAA2 book2 230
BBB1 book1 58
BBB2 book2 300
我必须创建一个新的 table 行 bookx 是列的名称。
Regis book1 book2
AAA1 127
AAA2 230
BBB1 58
BBB2 300
谢谢。
您可以为此使用 PROC TRANSPOSE。
proc transpose out=want;
by regis;
id book;
var page;
run;
在 sas base 中我有以下 table:
Regis Book Page
AAA1 book1 127
AAA2 book2 230
BBB1 book1 58
BBB2 book2 300
我必须创建一个新的 table 行 bookx 是列的名称。
Regis book1 book2
AAA1 127
AAA2 230
BBB1 58
BBB2 300
谢谢。
您可以为此使用 PROC TRANSPOSE。
proc transpose out=want;
by regis;
id book;
var page;
run;