我可以让SAS使用名称长度超过32个字符的.sas7bdat文件吗?
我收到了一个.sas7bdat文件,文件名在扩展名之前有36个字符。除了重命名文件,还有什么方法可以让SAS使用它吗?我尝试了我可以让SAS使用名称长度超过32个字符的.sas7bdat文件吗?,sas,Sas,我收到了一个.sas7bdat文件,文件名在扩展名之前有36个字符。除了重命名文件,还有什么方法可以让SAS使用它吗?我尝试了选项validvarname=extend,但我认为这不是答案: 11 options validvarname=extend; ____________ 14 ERROR 14-12: Invalid option value extend for SAS option VALIDVARNA
选项validvarname=extend
,但我认为这不是答案:
11 options validvarname=extend;
____________
14
ERROR 14-12: Invalid option value extend for SAS option VALIDVARNAME.
我在Windows7上使用SAS 9.3
VALIDVARNAME=V7 | UPCASE | ANY
与变量名称相关,而与数据集名称无关
当
引用数据集,但仅允许名称中包含特殊字符,限制仍为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).
>扩展
>指定SAS数据集名称、SAS数据视图名称或项存储名称必须遵循以下规则:
>姓名可以包括国家字符。
>名称可以包括特殊字符,但/\*?“<>|::-。个字符。
>注意:SPD引擎不允许在成员名称中的任何位置使用“.”(句点)。
>名称必须至少包含一个字符。
>名称的长度最多可为32个字节。
>不允许使用空字节。
>名称不能以空白或“.”(句点)开头。
因此,我认为您必须重命名这些文件。特别是,
警告:在整个SAS中,对超过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).