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 are the main differences between sas versions 8.2, 9.0, 9.1?
What is the order of evaluation of the following operators + - * / ** () ???
calculate the sum of value using only DATA STEP. data count_; input year name $ value; cards; 2006 xxx 10 2007 yyy 12 2006 xxx 20 2008 yyy 15 2007 xxx 15 ; out put should be like this year name T_value ----------------------- 2006 xxx 30 2007 xxx 15 2007 yyy 12 2008 xxx 15
Baseline definition in your study
3 Answers Accenture, Quintiles,
Explain bmdp procedure?
How to get part of string form the source string without using sub string function in SAS?
In a shcool there are 1000 students. After completion of every test in 6 subjects , each subject teacher submit the marks of every student at different times and loaded in the database commonly. How will you seperate the top two subject marks for each each studet using SAS?
what is the difference between sas and other datawarehousing languages?what are the advantages of sas over them?
what is the use of catalog?
Have you been involved in editing the data or writing data queries?
1 Answers BioServe, Oracle, Sasken,
What are the new features included in the new version of SAS Programming Language?
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?