1.

What do you mean by %Include and %Eval?

Answer»

%Include: If you run a program containing the %INCLUDE statement, the SAS System executes any statements or data lines that you bring into the program. Statements are executed immediately. 

Syntax: 

%INCLUDE source(s)</<SOURCE2> <S2=length> <option-list> >;

Here,

  • Source(s) specify the location of the information that you wish to access with the %INCLUDE statement.
  • SOURCE2 causes the SAS log to show the source statements being used in your SAS program.
  • S2=length specifies the length of the input record.
  • Option-list specifies options that can be included in %INCLUDE.

%Eval: Integer arithmetic is used to evaluate arithmetic or logical expressions. %EVAL accepts only INTEGERS as operands in arithmetic expressions. Operands with floating-point values cannot be used in %EVAL arithmetic calculations. %SYSEVALF can be used in these cases.  

Syntax: %EVAL(arithmetic/logical-expression)

Example: 

%let d=%eval(13+23);Conclusion 

Have you been preparing for a SAS INTERVIEW and wondering how you can succeed?  This useful guide can HELP you prepare for it. We've compiled a list of the top 30+ SAS interview questions and answers that you're likely to be asked during your interviews. The questions have been specifically designed to familiarize you with the TYPE of questions you might ENCOUNTER during the interview.



Discussion

No Comment Found