SAS中文论坛

标题: 请教各位一个问题 [打印本页]

作者: shiyiming    时间: 2009-9-17 22:52
标题: 请教各位一个问题
解决了,谢哈
作者: shiyiming    时间: 2009-9-17 23:01
标题: Re: 请教各位一个问题
SORRY,SAS的变量名只能包含字母/数字/下划线,无法实现你的要求
建议你用LABEL语句为变量创建variable label
[code:ovzsgvvp]label name='full name';[/code:ovzsgvvp]
作者: shiyiming    时间: 2009-9-20 21:56
标题: Re: 请教各位一个问题
Rules for Most SAS Names
SAS names are used for SAS data set names, variable names, and other items. The following rules apply:

A SAS name can contain from one to 32 characters.

The first character must be a letter or an underscore (_).

Subsequent characters must be [color=#FF0000:waf7udu1]letters, numbers, or underscores.[/color:waf7udu1]
[color=#FF0000:waf7udu1]Blanks cannot appear[/color:waf7udu1] in SAS names.



Special Rules for Variable Names
For variable names only, SAS remembers the combination of uppercase and lowercase letters that you use when you create the variable name. Internally, the case of letters does not matter. "CAT," "cat," and "Cat" all represent the same variable. But for presentation purposes, SAS remembers the initial case of each letter and uses it to represent the variable name when printing it.




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2