i have 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?
Answers were Sorted based on User's Feedback
Answer / kumar
if we want variables in output window
data _null_;
file print;
put @5 'name' @20 'age' @30 'sex';
run;
if we want in log window
data _null_;
put @5 'name' @20 'age' @30 'sex';
run;
Is This Answer Correct ? | 13 Yes | 3 No |
Answer / sasuser
Hi Guys,
Following is the solution:
data _null_;
set sashelp.vcolumn ;
where libname='SASHELP' and memname='CLASS';
file print;
putlog Name @@;
put Name @@;
run;
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / sas user
* To print in log window
data _null_;
put x1= \
x2= \
x10= \;
run;
* To print on output window:
data _null_;
file print;
put x1= \
x2= \
x10= \;
run;
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rohit acharya
The variables of the empty dataset can be easily viewed in the output window with the help of proc contents
Is This Answer Correct ? | 0 Yes | 0 No |
Code a PROC SORT on a data set containing State, District and County as the primary variables, along with several numeric variables.
what is the difference between the SAS v8 and SAS v9?
how do u validate sas program
What is PDV?
Hi Friends, Am Priya,new to your forum. am looking for Interview questions on SAS Platform Administration. I searched everywhere but I couldn't find them,please can anyone help me with complete interview questions normally everyone will face in the interviews on SAS Administration. am really facing problems in the interviews,am not able to answer any of their questions. I would really appreciate all your help if you can email the complete Interview Questions to priyafeb84@gmail.com Kindly awaiting for your reply with eager
what is hierarchy flattening? : Sas-di
What are the data types does SAS contain?
what are the methods that you would employ to fine tune your SQL extract process using SAS/Access or Proc SQL?
Briefly explain input and put function?
What are the difference between ceil and floor functions in sas?
What is the work of tranwrd function?
Explain the use of proc gplot? : sas-grid-administration