楼主: sopching
1967 2

求助 为什么pdv只输出2个变量 [推广有奖]

  • 1关注
  • 3粉丝

博士生

62%

还不是VIP/贵宾

-

威望
0
论坛币
208 个
通用积分
0
学术水平
19 点
热心指数
23 点
信用等级
9 点
经验
4538 点
帖子
180
精华
0
在线时间
466 小时
注册时间
2009-12-20
最后登录
2018-7-3

楼主
sopching 发表于 2010-10-29 01:04:38 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
很奇怪为什么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;
二维码

扫码加我 拉你入群

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

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

关键词:PDV length format cards FORMA 求助 变量 输出 PDV

沙发
pobel 在职认证  发表于 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.
已有 1 人评分论坛币 学术水平 热心指数 收起 理由
crackman + 20 + 1 + 1 给了别人一个学习的思路

总评分: 论坛币 + 20  学术水平 + 1  热心指数 + 1   查看全部评分

和谐拯救危机

藤椅
sopching 发表于 2010-10-29 10:02:05
2# pobel
thx 以后有问题先问问help。

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-29 13:03