全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
7877 3
2010-12-05
使用SAS/Proc Import 读入excel,默认情况下,也就是不使用textsize语句情况下,如何设置变量长度,尤其是字符型的
二维码

扫码加我 拉你入群

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

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

全部回复
2010-12-5 14:28:53
也可以利用SCANTEXT
不过为什么不用textsize

SCANTEXT=YES | NO;
scans the length of text data for a data source column and uses the length of the longest string data that it finds as the SAS column width. However, if the maximum length that it finds is greater than what is specified in the TEXTSIZE= option, then the smaller value that is specified in TEXTSIZE= will be applied as the SAS variable width.
二维码

扫码加我 拉你入群

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

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

2010-12-8 11:10:23
对于字符变量,如果指定了scantext=no,则使用textsize设定的长度,缺省是255;如果scantext=yes,则取scantext扫描值与textsize设定值的较小者.
数值变量都是8
二维码

扫码加我 拉你入群

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

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

2021-4-15 16:00:41
wqmath 发表于 2010-12-8 11:10
对于字符变量,如果指定了scantext=no,则使用textsize设定的长度,缺省是255;如果scantext=yes,则取scantext扫 ...
说的太好了,就需要你这样的人才
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群