全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1934 2
2010-10-29
很奇怪为什么a中只有2个变量,date和n而没有name。按道理length声明之后,pdv里就会有name了啊,最后也一样输出啊。为什么结果只有2个呢?难道filevar变量不输出?求解释。
代码:
data a;
length name $ 100;
input name $ ;
file files filevar=name ;
date=date();
format date yymmdd10.;
n=name;
put 'wo' date;
cards;
pls
pls_1
pls_2
;
run;
二维码

扫码加我 拉你入群

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

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

全部回复
2010-10-29 07:15:31
SAS  帮助: FILEVAR=variable defines a variable whose change in value causes the FILE statement to close the current output file and open a new one the next time the FILE statement executes. The next PUT statement that executes writes to the new file that is specified as the value of the FILEVAR= variable.
Restriction:The value of a FILEVAR= variable is expressed as a character string that contains a physical filename.[/td]
Interaction:When you use the FILEVAR= option, the file-specification is just a placeholder, not an actual filename or a fileref that has been previously-assigned to a file. SAS uses this placeholder for reporting processing information to the SAS log. It must conform to the same rules as a fileref.[/td]
Tip:This variable, like automatic variables, is not written to the data set.
二维码

扫码加我 拉你入群

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

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

2010-10-29 10:02:05
2# pobel
thx 以后有问题先问问help。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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