SAS中文论坛

标题: SAS advance exam question 6: INFILE statement [打印本页]

作者: shiyiming    时间: 2010-6-15 04:34
标题: 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.

^_^
作者: shiyiming    时间: 2010-6-16 07:53
标题: 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.
作者: shiyiming    时间: 2010-6-24 01:19
标题: Re: SAS advance exam question 6: INFILE statement
I think is A.
作者: shiyiming    时间: 2010-6-24 03:34
标题: 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

---
作者: shiyiming    时间: 2010-6-24 04:04
标题: Re: SAS advance exam question 6: INFILE statement
I don't understant "end=Eof", who can explain it? Thanks.

^-^




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2