SPSS和SAS之间的可变名称不兼容
我将SPSS(.SAV文件)导入SAS。其中几个变量没有显示出来,因为它们被命名为诸如“变量___ 1.1”时,当我尝试将某些变量保持在数据步骤中时,我会遇到错误,因为这些变量会造成错误,因为SAS误解了'。
有没有人以前遇到过此事或知道它的方法?
我可以在.sas7bdat文件中看到问题变量及其值,因此导入的数据,我只需要找到一种更改变量名称的方法,以便我可以将其包含在报告中。
I imported an SPSS (.sav file) into SAS. Several of the variables are not showing up as they are named things like 'variable___1.1' When i try to KEEP certain variables in a data step, I get an error because these variables create an error as SAS misinterprets the '.'
Has anyone encountered this before or know a way around it?
I can see the problem variables and their values in the .sas7bdat file, so the data imported, I just need to find a way to change the variable name so I can include it in the report.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用name字面符号,
'variable1_1'n
在代码中,例如或设置此选项并重新输入数据,以便获得更好的名称。
这将告诉SAS使用更简单的变量名称导入数据。请注意,我不确定这是变量名称中的两个下降或三个或四个。
You use name literal notation,
'variable1_1'n
in your code, e.g.Or set this option and reimport your data so that you get better names.
That will tell SAS to import the data with simpler variable names. Note that I'm not sure if that's two underscores or three or four in the variable name....guessing at 3.