ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Data Warehouse  >>  SAS
 
 


 

 
 Teradata interview questions  Teradata Interview Questions
 Business Objects interview questions  Business Objects Interview Questions
 Cognos interview questions  Cognos Interview Questions
 Informatica interview questions  Informatica Interview Questions
 Crystal Enterprise Suite interview questions  Crystal Enterprise Suite Interview Questions
 Actuate interview questions  Actuate Interview Questions
 Ab Initio interview questions  Ab Initio Interview Questions
 Data Stage interview questions  Data Stage Interview Questions
 SAS interview questions  SAS Interview Questions
 Micro Strategy interview questions  Micro Strategy Interview Questions
 ETL interview questions  ETL Interview Questions
 Data Warehouse General interview questions  Data Warehouse General Interview Questions
Question
how we can call macros with in data step?
 Question Submitted By :: Syam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how we can call macros with in data step?
Answer
# 1
using call excute
 
Is This Answer Correct ?    2 Yes 0 No
Syam
 
  Re: how we can call macros with in data step?
Answer
# 2
by using symput command
 
Is This Answer Correct ?    2 Yes 1 No
Daya
 
 
 
  Re: how we can call macros with in data step?
Answer
# 3
Using & (Ampersand)
 
Is This Answer Correct ?    0 Yes 1 No
Gurvinder Singh
 
  Re: how we can call macros with in data step?
Answer
# 4
We can call the macro with CALLSYMPUT
 
Is This Answer Correct ?    0 Yes 1 No
Ramana
 
  Re: how we can call macros with in data step?
Answer
# 5
Use callsymput in data step.
EX:
 
Data _null_;
set group;
call symput('_grpname',group name);
run;
 
Is This Answer Correct ?    0 Yes 1 No
Payal
 
  Re: how we can call macros with in data step?
Answer
# 6
using  symget

data one;
symget &macro1;
run;
 
Is This Answer Correct ?    0 Yes 0 No
As
 
  Re: how we can call macros with in data step?
Answer
# 7
We can call macro in a dataset by preceding % with macro 
name.

call symput - used to create macro variable in data step.

symget - used to assign value of macro variable to data 
step variable.
 
Is This Answer Correct ?    0 Yes 0 No
Selvi
 
  Re: how we can call macros with in data step?
Answer
# 8
oh....use less felows don't give this much answers how can 
a person knows which one is the correct answer,i can see 
here more wrong answers than correct answers.i suggest some 
of the people who don't know the exact answer better don't 
post stupid answers ,why because the persons who are facing 
the interview they are in learning stage they can't 
differentiate the answers.
 
Is This Answer Correct ?    2 Yes 0 No
Name Is No Need
 
  Re: how we can call macros with in data step?
Answer
# 9
oh....use less felows don't give this much answers how can 
a person knows which one is the correct answer,i can see 
here more wrong answers than correct answers.i suggest some 
of the people who don't know the exact answer better don't 
post stupid answers ,why because the persons who are facing 
the interview they are in learning stage they can't 
differentiate the answers.
 
Is This Answer Correct ?    1 Yes 0 No
Xyz
 
  Re: how we can call macros with in data step?
Answer
# 10
We have to use call execute to call a macro. For other 
answers 
1 &(amperson) is used to resolve the macrovariable and not  
call macro .
2 Call symput is to define a macro variable dynamical in 
data step. useful in data driven programs.

3 symget is to get the macro variable from symbol table and 
not call a macro.

Hope it will help..would recomand to double check before 
post ..al the best
 
Is This Answer Correct ?    2 Yes 1 No
Learner
 
  Re: how we can call macros with in data step?
Answer
# 11
%include statement can be used to call a macro within a 
data setp.

or 

call a macro with %macro-name (only if the) in the datasetp
(condition that this marco exists in the central location 
where it is defiened).

Please anybody suggest if these are right answers.
 
Is This Answer Correct ?    0 Yes 2 No
Ram Pabba
 

 
 
 
Other SAS Interview Questions
 
  Question Asked @ Answers
 
How could you generate test data with no input data?  9
what is the difference between the SAS v8 and SAS v9? TCS5
What other SAS features do you use for error trapping and data validation?  2
in ods is there any lib's SAS1
1.What is the difference between _NULL_ , _ALL_, and _N_? 2.What are the uses of _NULL_ using in Data Steps? Can we _NULL_ in Proc Steps also? 3.How do call the macro variable in Data Steps? 4.How to construct Pivot tables in Excel Using SAS?  1
How do you generate random samples?  4
What is the one statement to set the criteria of data that can be coded in any step? Accenture3
Are you familiar with special input delimiters? How are they used? Accenture3
What do you feel about hardcoding? Pfizer3
how many types of MERGE? CitiGroup12
what is SAS/Graph? CitiGroup1
what is sas? is a package or tool? give me introduction about sas?  9
wat is sas? is a package or programming language?  2
What is _n_?  17
Describe how you would pass data to macro.  3
Have you ever linked SAS code, If so, describe the link and any required statements used to either process the code or the step itself?  2
what is fact table and factless table?  1
If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?  2
what are the new features included in the new version of SAS i.e., SAS9.1.3? Wockhardt4
What is the difference between an informat and a format. Name three informats or formats.  4
 
For more SAS Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com