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 SAS statements would you code to read an external raw data file to a DATA step?
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 ?
what are informats in sas? : Sas-administrator
what is _error_?
2 Answers Axis Bank, Cognizant, JPMorgan Chase,
how many data types in sas? : Sas-administrator
In the flow of DATA step processing, what is the first action in a typical DATA Step?
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
What would you change about your job?
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?
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?
What is a put statement?