1.we can execute a macro with in a macro,by using call
symput and symget can any one give me one example?
2.We can create the macro variables by using %let,%do,macro
parameters,INTO clause in proc sql and call symput, can
any one give me example to create macro variable with INTO
clause and call symput?
3.



1.we can execute a macro with in a macro,by using call symput and symget can any one give me one e..

Answer / aravind9882

data x;
a=98;
b=45;
call symput('m',a);
run;
%put &m;


proc sql;
select b into :m2 from x;
quit;
%put &m2;

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More SAS Interview Questions

How would you create multiple observations from a single observation?

1 Answers   Quintiles,


Please write codes to merge two datasets and keep every record in the first dataset.

1 Answers  


Can you suggest us materials for sdtm mapping?

0 Answers   TCS,


What does proc print, and proc contents are used for?

0 Answers  


How do you put a giraffe into the refrigerator?

3 Answers   Oracle,






Do you prefer Proc Report or Proc Tabulate? Why?

9 Answers   Oracle,


how to do user inputs and command line arguments in sas?

0 Answers   D&B, TCS,


There is a field containing a date. It needs to be displayed in the format “ddmonyy” if it’s before 1975,”dd mon ccyy” if it’s after 1985, and as ‘disco years’ if its between 1975 and 1985. How would you accomplish this in data step code? Using only PROC FORMAT.

3 Answers   CTS,


What function CATX syntax does?

0 Answers  


what is washout period?

3 Answers   Cognizant,


What are the implications?

0 Answers   Quintiles,


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

0 Answers  


Categories