Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 SAS statements would you code to read an external raw data file to a DATA step?

6 Answers   Accenture,


We have a string like this "kannafromsalembut" ,from this i want to get only "fromsal" (but one condition with out using substring function)here we can not use scan because in the given string there is no delimeter? so give ans without out using substring ?

5 Answers  


what are informats in sas? : Sas-administrator

0 Answers  


what is _error_?

2 Answers   Axis Bank, Cognizant, JPMorgan Chase,


how many data types in sas? : Sas-administrator

1 Answers  


In the flow of DATA step processing, what is the first action in a typical DATA Step?

6 Answers   Accenture,


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

0 Answers  


What would you change about your job?

0 Answers   Oracle,


what type of reports you are generating in your company...???

2 Answers   GSK GlaxoSmithKline,


Are you involved in writing the inferential analysis plan? Tables specfications?

0 Answers   Wipro,


I am having a stored process.it needs to route my report to both hthml and Xls.By default SP routes to html.I used the PRINTTO to route the html to Xls.BUt it createsthe file not but no content was written to file(0KB)?how can i do it?

1 Answers  


What is a put statement?

0 Answers  


Categories