楼主: 徐阿阿
7396 5

[问答] sas base 问题~~困扰许久~~求解答~ 变量名不能超过8个字符是对哪些呢 [推广有奖]

  • 0关注
  • 0粉丝

初中生

52%

还不是VIP/贵宾

-

威望
0
论坛币
63 个
通用积分
3.2735
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
2427 点
帖子
16
精华
0
在线时间
13 小时
注册时间
2013-5-14
最后登录
2015-12-1

楼主
徐阿阿 学生认证  发表于 2014-4-11 22:19:01 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
data products;
product_number=5461;
item='1001';
item_reference=item||'/'||product_number;
run;


which one of the following is the value of the variable item_reference in the output?
a. 1001/5461
b. 1001/         5461  八个空格
c. .(missing)
d. the value can not be determined as the program fails to excute due to errors.


答案是b 解释中说到 在sas里实现也确实如此
item_reference expected character but numerical got,so it automatically change it intocharacter by using best 12,begining form right。

为什么会从右边开始呢??不明白

还有product_number这些是变脸名嘛?那他都超过8个字符啦~为什么还可以用呢?
对于变量名不能超过8个字符究竟是对哪些呢???

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:SAS base Base 求解答 Determined Reference character following products expected change

沙发
zhengbo8 发表于 2014-4-11 22:34:28

藤椅
徐阿阿 学生认证  发表于 2014-4-12 09:34:41 来自手机
zhengbo8 发表于 2014-4-11 22:34
http://www.cnblogs.com/zhengbo8/archive/2013/05/18/3085850.html
篇文章确实对我很有帮助,真的好感谢

我想再问一下

像 product_reference  item_reference这些不是变量名嘛?他们都超过了八个字符,不是变量名不能超过八个字符的嘛?

板凳
zhengbo8 发表于 2014-4-12 21:14:27
没有说变量名长度不超过8,只是逻辑库名不超过8,数据集名不超过32。

报纸
徐阿阿 学生认证  发表于 2014-4-14 09:52:15 来自手机
zhengbo8 发表于 2014-4-12 21:14
没有说变量名长度不超过8,只是逻辑库名不超过8,数据集名不超过32。
谢谢你~

地板
徐阿阿 学生认证  发表于 2014-4-14 09:52:15 来自手机
zhengbo8 发表于 2014-4-12 21:14
没有说变量名长度不超过8,只是逻辑库名不超过8,数据集名不超过32。
谢谢你~

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-7 11:25