SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 5002|回复: 4
打印 上一主题 下一主题

SAS advance exam question 6: INFILE statement

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2010-6-15 04:34:37 | 只看该作者

SAS advance exam question 6: INFILE statement

The following SAS program is submitted:

data WORK.NEW;
    do i=1, 2, 3;
        Next=cats('March' || i );
        infile XYZ
        filevar=Next
        end=Eof;
        do until (Eof);
            input Dept $ Sales;
        end;
    end;
run;

The purpose of the FILEVAR=option on the INFILE statement is to name the variable Next, whose value:
A. points to a new input file.
B. is output to the SAS data set WORK.NEW.
C. is an input SAS data set reference.
D. points to an aggregate storage location.

Would please please let me know which one is the correct answer and the reasons why it is correct? Thanks.

^_^
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2010-6-16 07:53:03 | 只看该作者

Re: SAS advance exam question 6: INFILE statement

You should try to find out the answer by yourself rather than waiting for someone to answer. Your English seems good so you should be able to solve this question easily by reading and searching.

Being mind-active is important for success. I am wondering whether you are fooling others.
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
板凳
 楼主| 发表于 2010-6-24 01:19:53 | 只看该作者

Re: SAS advance exam question 6: INFILE statement

I think is A.
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
地板
 楼主| 发表于 2010-6-24 03:34:24 | 只看该作者

Re: SAS advance exam question 6: INFILE statement

Dear Ergoudan,

Thanks for your message. However, I did not try to fool other people at all.

The main reason why I write the SAS question here is that I want to know the points and also need help, in fact, other people's ideas is very helpful (probably you agree that two heads is better then one) . I do not have so much time to read and search the document, so I would rather to know what the knowledge point of the question and then read the books and document, which you might agree is more efficent. Thank you.

Best,
David

---
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
5#
 楼主| 发表于 2010-6-24 04:04:34 | 只看该作者

Re: SAS advance exam question 6: INFILE statement

I don't understant "end=Eof", who can explain it? Thanks.

^-^
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2026-2-4 03:30 , Processed in 0.084957 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表