How would you include common or reuse code to be processed
along with your statements?
Answers were Sorted based on User's Feedback
Answer / selvi
We can code the resusable as seperate macro. And will call
into SAS program where ever there is a need.
Macro should start with %macro macroname(), and end with %
mend.
Syntax for call in datastep-%macroname
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / selvi
To add on above one, if you want to include the another SAS
program then use %include with full SAS code path.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / basha
we can use autocall liobrary in macros which includes
options mautosource
syntax creating auto call lbrary
libname statement
filename
catalog
at last
code:libname<filename><catalog><sourcecode>
note:macroname is same as source file name
| Is This Answer Correct ? | 0 Yes | 0 No |
How can sas program be validated?
Explain the message 'Merge has one or more datasets with repeats of by variables'.
What is the difference between nodup and nodupkey options?
20 Answers iFlex, Makro, Talwar,
whenever we using the merging through data set merging ,we can get note in log like this "MERGE STATEMENT HAS MORE THAN ONE ONE DATASET BY REPEATED BY VAIABLES" but the output has come in good manner,whenever in in sql(full join) we can get cartion product.so How do overcome this problem in sql?
sas implimented companies in hyderabad
If you set a label in the data step and call a proc freq on the data, how do you display the data without the labels and just the variables.
Diff between proc sql merge and join?
How do you add a number to a macro variable?
how would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable? : Sas programming
What is the maximum length of the macro variable? : sas-macro
why only we use SAS? their r many programmin language like SPSS, Oracle... Why SAS?
what is SAS/Access and SAS/Connect?what are the uses?