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 |
Which function is used to count the number of intervals between two sas dates?
What is the purpose of _error_?
Why Info School? BUILD YOUR CAREER WITH RIGHT GUIDANCE AND SUPPORT SAS Training in Data Management at InfoSchool Bangalore
how would you create multiple observations from a single observation? : Sas programming
what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming
What makes sas stand out to be the best over other data analytics tools?
To what type of programms have you used scratch macros?
AE datasets names? how many types?
What is the purpose of the trailing @? The @@? How would you use them?
Briefly explain input and put function?
What is Linear Regression?
Explain the message 'Merge has one or more datasets with repeats of by variables'.