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 scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake
What would be the value of month at the end of data step execution and how many observations would be there?
what are several options for creating reports in web report studio? : Sas-bi
What is connection profile? : sas-grid-administration
In a shcool there are 1000 students. After completion of every test in 6 subjects , each subject teacher submit the marks of every student at different times and loaded in the database commonly. How will you seperate the top two subject marks for each each studet using SAS?
what is chi-square test? have you used that?
1 Answers Accenture, Quintiles,
How we can create SAS USER DEFINED CODE?
Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?
how do i get last 10obs from a dataset when we don't know about the number of obsevations in that dataset?
What are the main differences between sas versions 8.2, 9.0, 9.1?
What r all the reporting procedures...?
Define run-group processing?