How would you include common or reuse code to be processed
along with your statements?

Answers were Sorted based on User's Feedback



How would you include common or reuse code to be processed along with your statements?..

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

How would you include common or reuse code to be processed along with your statements?..

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

How would you include common or reuse code to be processed along with your statements?..

Answer / vemula

%include
%list

Is This Answer Correct ?    0 Yes 0 No

How would you include common or reuse code to be processed along with your statements?..

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

How would you include common or reuse code to be processed along with your statements?..

Answer / raj

Use %inc statement to include piece of code

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SAS Interview Questions

Which function is used to count the number of intervals between two sas dates?

0 Answers  


What is the purpose of _error_?

1 Answers   Quintiles,


Why Info School? BUILD YOUR CAREER WITH RIGHT GUIDANCE AND SUPPORT SAS Training in Data Management at InfoSchool Bangalore

1 Answers  


how would you create multiple observations from a single observation? : Sas programming

0 Answers  


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

0 Answers  






What makes sas stand out to be the best over other data analytics tools?

0 Answers  


To what type of programms have you used scratch macros?

0 Answers   Novartis,


AE datasets names? how many types?

0 Answers   Accenture,


What is the purpose of the trailing @? The @@? How would you use them?

10 Answers   Accenture,


Briefly explain input and put function?

0 Answers  


What is Linear Regression?

0 Answers  


Explain the message 'Merge has one or more datasets with repeats of by variables'.

5 Answers  


Categories