One way of creating a new variable in Macros is by %
Let....What is the other way..?

Answers were Sorted based on User's Feedback



One way of creating a new variable in Macros is by % Let....What is the other way..?..

Answer / prem krishnan

1) %macro <macroname> ( );
%mend (<macroname>;

a DATA step that contains a SYMPUT routine within a macro
definition
a DATA step that contains a SYMPUTX routine within a macro
definition

a SELECT statement that contains an INTO clause in PROC SQL
within a macro
definition
a %LOCAL statement.
%global statement

Is This Answer Correct ?    8 Yes 0 No

One way of creating a new variable in Macros is by % Let....What is the other way..?..

Answer / satyanand

•A %LET statement (used outside a macro definition)
•A DATA step that contains a SYMPUT routine
•A DATA step that contains a SYMPUTX routine (beginning in
SAS 9)
•A SELECT statement that contains an INTO clause in PROC SQL
•A %GLOBAL statement.

Is This Answer Correct ?    3 Yes 0 No

One way of creating a new variable in Macros is by % Let....What is the other way..?..

Answer / aruna

Use Callsymput(<variable>, <Value>) for version lessthan
SAS9

Use Callsymputx(<variable>, <Value>) for SAS9

Is This Answer Correct ?    2 Yes 0 No

One way of creating a new variable in Macros is by % Let....What is the other way..?..

Answer / xxx

%Global;
%Local;
%let;
call symput in datastep;
into clause in proc sql;

Is This Answer Correct ?    2 Yes 0 No

One way of creating a new variable in Macros is by % Let....What is the other way..?..

Answer / lavanya

In addition to the %LET statement, other features of the macro language that create macro variables are
iterative %DO statement
%GLOBAL statement
%INPUT statement
INTO clause of the SELECT statement in SQL
%LOCAL statement
%MACRO statement
SYMPUT routine and SYMPUTN routine in SCL
%WINDOW statement.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

0 Answers  


what are the methods that you would employ to fine tune your SQL extract process using SAS/Access or Proc SQL?

1 Answers  


If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn’t have a value?

3 Answers   Accenture,


do you prefer proc report or proc tabulate? Why? : Sas programming

0 Answers  


What is the difference between using drop = data set option in data statement and set statement?

0 Answers  






Explain by-group processing?

0 Answers  


Briefly explain input and put function?

0 Answers  


/* To determine the maximum and minimum of V1 */ data before3; input v1 v2 v3; cards; 3 2 1 4 6 5 2 1 3 6 5 4 1 3 2 5 4 6 ; run;

5 Answers  


What techniques and/or PROCs do you use for tables?

4 Answers   Oracle,


how will you locate the sas platform applications? : Sas-bi

0 Answers  


What are exact SAS Base contents..?N what r SAS Tools..?

1 Answers  


how will you location sas platform applications available from web browser? : Sas-bi

0 Answers  


Categories