SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 640|回复: 2
打印 上一主题 下一主题

请教各位一个问题

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2009-9-17 22:52:51 | 只看该作者

请教各位一个问题

解决了,谢哈
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2009-9-17 23:01:17 | 只看该作者

Re: 请教各位一个问题

SORRY,SAS的变量名只能包含字母/数字/下划线,无法实现你的要求
建议你用LABEL语句为变量创建variable label
[code:ovzsgvvp]label name='full name';[/code:ovzsgvvp]
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
板凳
 楼主| 发表于 2009-9-20 21:56:35 | 只看该作者

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.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2026-2-5 23:18 , Processed in 0.068496 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表