what is the difference between %put and symbolgen?

Answers were Sorted based on User's Feedback



what is the difference between %put and symbolgen?..

Answer / mallikarjuna reddy.vanna

besides all the above answers, we can also say that by using
%put we can get values of specified macro variables, where
as by using symbolgen we can get the values of all the macro
variables with in a program.
%put is a macro language program statement, like %put and
%macro. symbolgen is an option.

Is This Answer Correct ?    12 Yes 0 No

what is the difference between %put and symbolgen?..

Answer / basha

both are used bebugging of macros
%put stmt write the text or macro variable information
like all macro global variables
where as
symbolgen display what macro variable resolves the value
ex;
%let v=sas;
symbolgen displays
macro variable v resolves to sas
this is especially useful when macro variables resolves
other than that u expected

%put stmt is also used with in the macro
symbolgen must be used options stmt
debugging macro with %put stmt
%put &d;
log:macrovariable d resolves to 'some-value '

regarda
basha
if any suggestion of this answer please mail
me:bashag3@yahoo.com

Is This Answer Correct ?    3 Yes 0 No

what is the difference between %put and symbolgen?..

Answer / rajaanku11

%put is used to display user defined messages on log window
after execution of a prog where as

%symbolgen is used to print the value of a macro variable
resolved, on log window

Is This Answer Correct ?    5 Yes 3 No

what is the difference between %put and symbolgen?..

Answer / rajaanku11

In addition to the above answer,we can add one more sentence
to the %put.

%put is also used to print the macrovariables(automatic or
user defined or all) values on log.

Is This Answer Correct ?    3 Yes 1 No

what is the difference between %put and symbolgen?..

Answer / cutepa1

Mallikarjun is exactly correct that symbolgen is just an
option and cant be used within statements.

Is This Answer Correct ?    1 Yes 0 No

what is the difference between %put and symbolgen?..

Answer / d.s

options symbolgen could cause problems sometimes.
%macro m(x);
options symbolgen;
%let x=%eval(&x+1);
&x
%mend;
%put NOTE:***x=%m(1)***;

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SAS Interview Questions

Compare sas with other data analytics tools.

0 Answers  


explain what is data set in sas? : Sas-administrator

0 Answers  


I use NOCUM/NOPERCENT option in the tables statement like this Proc freq data = deepak; tables x y /nocum nopercent; run; Here I get nopercent and nocum in the output only for variables x and y. How do i do it for all variables? Deepak

1 Answers  


What is SAS? What are the functions does it performs?

0 Answers  


What is interleaving in SAS?

0 Answers  






how to delete the duplicates by using proc sql?

3 Answers   Genpact,


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

0 Answers  


What report output formats can you generate using SAS?

3 Answers   Accenture,


what are the considerations when picking a SAS/STAT procedure?

0 Answers   Accenture, Quintiles,


If you?re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?

1 Answers  


How do you debug and test your SAS programs? What can you learn from the SAS log when debugging? How do you test for missing values? How would you create multiple observations from a single observation? What are some good SAS programming practices for processing very large data sets? Briefly describe 5 ways to do a "table lookup" in SAS. Why is SAS considered self-documenting? Are you sensitive to code walk-throughs, peer review, or QC review? What other SAS features do you use for error trapping and data validation? How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

2 Answers  


Explain the main difference between the sas procedures and functions? : Sas-administrator

0 Answers  


Categories