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

Explain the message 'Merge has one or more datasets with repeats of by variables'.

5 Answers  


why a stop statement is needed for the point= option on a set statement?

0 Answers  


What is the difference between Proc tabulate and Proc print

4 Answers   CitiGroup,


what are all the default values getting in PROC MEANS...???

2 Answers  


what techniques and/or procs do you use for tables? : Sas programming

0 Answers  






How would you code a macro statement to produce information on the SAS log? This statement can be coded anywhere.

8 Answers  


Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

0 Answers  


How would you delete observations with duplicate keys?

6 Answers  


what is sas business intelligence? : Sas-bi

0 Answers  


What are the criticality that you have faced during your project in SAS?

2 Answers  


how are numeric and character missing values represented internally? : Sas programming

0 Answers  


which features do you use to check the data validations and errors? : Sas-administrator

0 Answers  


Categories