我正在尝试修改并在SAS数据集中进行永久更改,但我无法做到
我想永久更改是可变名称fclass和标签日期作为出发日期。 我已经使用了修改语句和重命名,但是运行程序时会遇到错误。
proc datasets library= ia;
modify passngrs;
rename FClass= First Class;
label Date='Departure date';
format Date date9.;
run;
I want to make permanent changes is the variable name Fclass and label Date as Departure date.
i have used the modify statement along with rename but I am getting error when I am running the program.
proc datasets library= ia;
modify passngrs;
rename FClass= First Class;
label Date='Departure date';
format Date date9.;
run;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想执行任何操作:
重命名fclass = firstClass;
重命名为棘手的名称
options vallyvarname = any;
PROC ...;
...;
重命名fclass ='first class'n;
fclass
而不是重命名的标签
标签fclass ='第一类';
You might want to do any of these:
rename FCLASS = FirstClass;
options validvarname=any;
proc ...;
...;
rename FCLASS = 'First Class'N;
FCLASS
instead of renaming itlabel FCLASS = 'First Class';