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 |
What is a post baseline?
What is the difference between an informat and a format? Name three informats or formats.
Which date functions advances a date time or date/time value by agiven interval?
What are the ways in which macro variables can be created in sas programming?
how to generate the test data in sas without input data? : Sas-administrator
what are 5 ways to perform a table lookup in sas? : Sas-administrator
What is SAS informats?
how to perform paired t-test using Base/SAS & SAS/Stat?
what does .. meant in sas macros
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
what is the primary variable in your study?
When you will use nowd option in report???