what does .. meant in sas macros
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is slibref?
Can you execute a macro within a macro? Describe. : sas-macro
If you?re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?
Hi, I need to create a SAS Map of USA using SAS Graphs(Proc Gmap).The data i have dosent contain any co-ordinates of USA cities or counties or states, and the zip codes are diffrent in the data i have from the zip code in the Maps.US dataset in the Maps Library for SAS MAPS. the data i have is a sales report. i have to generate the maps according to the states,cities aligned in the sales data, HELP Appriciated
Explain data_null_?
IS SAS COMPILER OR INTERPRETER? EXPLAIN?
3 Answers Aon Hewitt, HSBC, SCL, TCS,
Describe a time when you were really stuck on a problem and how you solved it?
How to limit decimal places for the variable using proc means?
In which format does Date stores in sas..? What is the use of DATE in SAS.?
what is the use of proc sql?
Name the option to produce a frequency line items rather that a table.
What is difference between sas rename and lable?