what does .. meant in sas macros




Answers were Sorted based on User's Feedback



what does .. meant in sas macros..

Answer / arun & g.n.rao

In macros two dots (..) are used to call a library if it is
declared as a macro.

IF YOUR USING A SINGLE DOT i.e SCOTT.EMP YOU WONT GET ANY
OUTPUT AND THE ERROR OCCURED IS WORK.SCOTTEMP DOES NOT EXIST

SO WE SHOULD USE TWO DOTS WHEN CALLING A LIB NAME AS A MACRO

%LET A=SCOTT /*LIBRARY NAME*/

PROC PRINT DATA=&A..EMP;
RUN;

Is This Answer Correct ?    13 Yes 1 No

what does .. meant in sas macros..

Answer / gangadhar

to the above answer i add little .. is used for libref and
one . for compiler and another for macro variable.

Is This Answer Correct ?    8 Yes 2 No

what does .. meant in sas macros..

Answer / velppuula shathish

data Sd;
set ds nobs=x;
if _N_>=20;
RUN;

proc print data=sd;
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer



More SAS Interview Questions

What do you feel about hardcoding?

1 Answers  


Difference between informat and format?

0 Answers  


In which format does Date stores in sas..? What is the use of DATE in SAS.?

3 Answers   TCS,


Name statements that are execution only.

14 Answers   Accenture,


What is highest missing value for numeric?

1 Answers  






what are the methods that you would employ to fine tune your SQL extract process using SAS/Access or Proc SQL?

1 Answers  


Describe the function and untility of the most difficult SAS macro that you have written.

0 Answers  


When looking for data contained in a character string of 150 bytes, which function is the best to locate that data: scan, index, or indexc?

7 Answers  


what is change analysis in sas di ? : Sas-di

0 Answers  


How do you read in the variables that you need?

9 Answers   Accenture,


What does a PROC TRANSPOSE do?

8 Answers   Accenture,


There is a river notoriously known for it?s large crocodile population. With ease, how do you safely cross it?

1 Answers   Oracle,






Categories