开发者

How do I change the label in a data step header?

开发者 https://www.devze.com 2022-12-15 18:24 出处:网络
In SAS you can do. data a(rename=(a=b) ); a = 1; run; to rename a variable in the data step data statement (or data step header as I call it).

In SAS you can do.

data a(rename=(a=b) );
  a = 1;
run;

to rename a variable in the data step data statement (or data step header as I call it).

What's the syntax to change the label? I tried

data a(label=(a='a to b') );
  a = 1;
run;

But it d开发者_如何转开发oesn't work.


data a;
    x=1;
    label x="label"; * original label;
run;

proc datasets lib=work nolist;
    modify a;
    label x='new label';
run; quit;


I don't think manipulating label via data step options is possible. For manipulating label using data step, either one is fine:

attrib a label='a to b';
label a='a to b';

but I guess you already knew.

0

精彩评论

暂无评论...
验证码 换一张
取 消