我已经提供了一个.sas7bdat文件,其文件名在扩展名之前有36个字符。除了重命名文件之外,有什么方法可以让SAS使用它吗?我试过了options validvarname=extend
,但我认为不是答案:
11 options validvarname=extend;
____________
14
ERROR 14-12: Invalid option value extend for SAS option VALIDVARNAME.
我在Windows 7上使用SAS 9.3。
答案 0 :(得分:2)
VALIDVARNAME=V7 | UPCASE | ANY
与变量名称相关,而不是数据集名称。
虽然
options VALIDMEMNAME=EXTEND;
是指数据集,但只允许名称中的特殊字符,限制仍然是32个字符。
来自SAS帮助:
> EXTEND
> specifies that a SAS data set name, a SAS data view name, or an item store name must follow these rules:
> Names can include national characters.
> The name can include special characters, except for the / \ * ? " < > |: -. characters.
> Note: The SPD Engine does not allow ‘.’ (the period) anywhere in the member name.
> The name must contain at least one character.
> The length of the name can be up to 32 bytes.
> Null bytes are not allowed.
> Names cannot begin with a blank or a ‘.’ (the period).
所以我认为你必须重命名文件。