全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3669 4
2009-11-30
我用infile导入文本数据。其中,数据集数据定义 harvest num(8) label='比率' format=12.6 informat=12.6,   文本中的值为97.10% 。结果导入后发现数据都是缺省值,没有正常导入。是我数据定义错了?文本的值是不能改的,在数据定义仍为数值类型的前提下,怎么修改?谢谢了。
二维码

扫码加我 拉你入群

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

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

全部回复
2009-11-30 12:38:03
informat=percent6.2
二维码

扫码加我 拉你入群

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

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

2009-11-30 12:43:38
PERCENTw.d  Informat reads percentages as numeric values.


Syntax Description


w  specifies the width of the input field.

d  optionally specifies the power of 10 by which to divide the value. If the data contain decimal points, the d value is ignored.
二维码

扫码加我 拉你入群

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

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

2009-11-30 12:57:59
改成percent6.2  后,导入的数据就成了1了。或者我改的有问题? 2# lwien007
二维码

扫码加我 拉你入群

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

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

2009-11-30 14:33:07
解决了。谢谢2L的回答。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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