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

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

0 Answers   Blue Star,


What would be the value of month at the end of data step execution and how many observations would be there?

0 Answers  


what are several options for creating reports in web report studio? : Sas-bi

0 Answers  


What is connection profile? : sas-grid-administration

0 Answers  


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?

6 Answers  


what is chi-square test? have you used that?

1 Answers   Accenture, Quintiles,


How we can create SAS USER DEFINED CODE?

0 Answers  


Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?

2 Answers  


how do i get last 10obs from a dataset when we don't know about the number of obsevations in that dataset?

7 Answers   TCS,


What are the main differences between sas versions 8.2, 9.0, 9.1?

4 Answers  


What r all the reporting procedures...?

3 Answers  


Define run-group processing?

0 Answers  


Categories