全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2040 2
2009-01-01

the following SAS program is submitted:

data work.moth;

date=put('13mar2000'd, ddmmyy10.);

run;

which one of the following represents the type and the length of the variable DATE in the output data set?

为什么答案是: character, 10 bytes.

我知道type,哪位大侠给解释一下如何判断 the length of vaiable

thank you very much!  Happy new year!

二维码

扫码加我 拉你入群

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

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

全部回复
2009-1-1 21:32:00
informat 为ddmmyy10.  已经把date的长度定义为10了
二维码

扫码加我 拉你入群

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

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

2009-1-5 15:30:00

If the PUT function returns a value to a variable that has not yet been assigned a length, by default the variable length is determined by the width of the format.

Since the format is ddmmyy10. so the length of the variable date will be 10.

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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