Premium

SAS Base Latest Interview Preparation (Q&A)



Question-: Can I create fileref for the entire directory which has multiple files in it?

Answer: Yes, you can create the same way as you created in above example, but instead of specific file change the path to the directory and in the infile statement you have to specify the filename as in below example.




Question-: What is the SAS Library?

Answer: SAS Library is a collection of SAS files, which can include SAS data sets or SAS files. And this entire collection is referenced as a unit. In Windows env. One SAS Library is equal to one folder and in Unix based env. It is equal to a directory.



Question-: Which SAS statement you can use to create the SAS libref?

Answer: We can use LIBNAME statement to create the libref. In the single LIBNAME statement we can create more than one libref as well. LIBNAME statement is a Global statement.



Question-: How long libref is effective?

Answer: Once libref is created it would remain effective until you change it, cancel it or until your SAS session is alive. The libref is mandatory for all the permanent SAS library which you want to refer and Work is also a libref for the temporary SAS Library.

Related Questions


Question-: How does SAS find that current step is ended?

Question-: When you submit the SAS program and you get the error message like “A Quoted String has become too long or that the statement is ambiguous� what does that mean?

Question-: Is that true when SAS program has syntax error, it would be compiled but execution fails?

Question-: If you have used invalid option in the SAS statement SAS program will ignore that?

Question-: What is the difference between PUTLOG and PUT statement?

Question-: In the PROC PRINT report, how can you use data value as an observation column?

Question-: How many “WHERE� statement you can have in a step?

Question-: What is the use of CONTAINS operator?