简体   繁体   English

SAS数据集“不存在”?

[英]SAS data set “nonexistent”?

Yesterday I renamed a SAS dataset using my OS. 昨天我使用操作系统重命名了SAS数据集。 (instead of doing it within a SAS environment). (而不是在SAS环境中执行此操作)。 Now, I can see it in my SAS explorer, but when I try to access it SAS tells me that it doesn't exist. 现在,我可以在SAS资源管理器中看到它,但是当我尝试访问它时,SAS告诉我它不存在。 I was able to recall the name that I had given the set originally, change it back "manually" and then access it through the interactive SAS environment but, my question: 我能够回忆起最初给定的名称,然后“手动”将其改回,然后通过交互式SAS环境访问它,但是,我的问题是:

What the heck is going on here? 这里到底发生了什么? Is this a flaw in my particular version of SAS or is this just how it is? 这是我特定版本的SAS中的缺陷还是仅此而已?

Member names in SAS must be valid SAS names. SAS中的成员名称必须是有效的SAS名称。 So you couldn't name your dataset 1979data.sas7bdat . 因此,您无法命名数据集1979data.sas7bdat You can relax some of the restrictions by setting the option VALIDMEMNAME to EXTEND and using name literals in your SAS code. 您可以通过将选项VALIDMEMNAME设置为EXTEND并在SAS代码中使用名称文字来放宽一些限制。

But also note that file names on case-sensitive file systems, like Unix, must be all lowercase. 但也请注意,区分大小写的文件系统(例如Unix)上的文件名必须全部小写。 So you couldn't use uppercase letters in the name of the file. 因此,您不能在文件名中使用大写字母。 So SAS would not see a file named OldData.SAS7bdat because if you tried to access a dataset named xxx.OldData it would be looking for a file named olddata.sas7bdat instead. 因此,SAS不会看到名为OldData.SAS7bdat的文件,因为如果您尝试访问名为xxx.OldData的数据集,它将查找的是名为olddata.sas7bdat的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM