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 |
Briefly describe 5 ways to do a "table lookup" in sas.
Which date functions advances a date time or date/time value by agiven interval?
What are exact SAS Base contents..?N what r SAS Tools..?
When you will use nowd option in report???
What SAS statements would you code to read an external raw data file to a DATA step?
IS SAS COMPILER OR INTERPRETER? EXPLAIN?
3 Answers Aon Hewitt, HSBC, SCL, TCS,
how can you put a "trace" in your program? : Sas programming
WHAT IS DEBUGGING? HOW TO TEST THE DEBUGGING IN SAS?
How to read multiple excel sheets from a single excel file at once????
7 Answers HCL, Verinon Technology Solutions,
Do you need to know if there are any missing values?
How do you define proc in sas? : sas-grid-administration
how to rearrange the data as our wish by using dataset block?