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 are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
Can anyone help to find a statement to get all the predefined formats?
3 Answers Verinon Technology Solutions,
Name statements that are recognized at compile time only?
Why double trailing @@ is used in input statement?
why only we use SAS? their r many programmin language like SPSS, Oracle... Why SAS?
Have you used macros? For what purpose you have used? : sas-macro
How do you delete duplicate observations in sas?
where will go the observations that were deleted by delete statement?
i have a dataset with 25 obs; 10th obs has like ramu,anji,ramu,azad,ramu like this. i want to know how many times the word repeats in that obs?
what is sas olap server? : Sas-di
explain what is factor analysis? : Sas-administrator
name some data transformation used in sas di? : Sas-di