Suppose a null dataset with 10 variables; i want to print only name of the varibales in log window and also output window. How can we do this one?

Submitted by: Administrator
data sm;
input name $ number;
datalines;
run;

dataset in created without observations but the dataset has
varibles.
Submitted by: Administrator

if you use Null data setname thabn no issue,

Proc contants data=null;
run;
(Variable name Represent in output window)

proc sql;
describe table null;
quit;
(variable name Represent in Log window)


If u use _NULL_ dataset name then dataset is no generated and varible name is not find in that data set
Submitted by: Bhavya Sheth

using %put _all_;
Submitted by: Poonam Gandhe

Read Online SAS (Statistical Analysis System) Job Interview Questions And Answers