Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



i have a null dataset with 10 variables; i want to print only name of the varibales in log window ..

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

i have a null dataset with 10 variables; i want to print only name of the varibales in log window ..

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

i have a null dataset with 10 variables; i want to print only name of the varibales in log window ..

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

i have a null dataset with 10 variables; i want to print only name of the varibales in log window ..

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

i have a null dataset with 10 variables; i want to print only name of the varibales in log window ..

Answer / solasa

data sm;
input name $ number;
datalines;
run;

dataset in created without observations but the dataset has
varibles.

Is This Answer Correct ?    4 Yes 6 No

i have a null dataset with 10 variables; i want to print only name of the varibales in log window ..

Answer / guest

using proc print statement

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More SAS Interview Questions

what is data integration? : Sas-di

0 Answers  


How you can read the variables that you need?

0 Answers  


How would you create multiple observations from a single observation?

1 Answers   Quintiles,


How do you put an elephant in the refrigerator?

6 Answers   Oracle,


What do the PUT and INPUT functions do?

0 Answers  


Hi, I have one dataset, could you please ans for this. id amount paid_amount 1 700 400 2 900 250 3 300 300 a 400 250 b 500 320 c 800 650 x 200 190 y 900 250 z 300 180 i want create new dataset having id and paid_amount who are paid high amount comparing amount. ex: 1d paid_amount 3 300 c 650 x 190

3 Answers  


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?

8 Answers   Accenture,


What are _numeric_ and _character_ and what do they do?

1 Answers   Quintiles,


What is the difference between class statement and by statement in proc means?

0 Answers  


what is the main difference between rename and label? (don't say that they both perform the same function).

11 Answers   Parexel,


What is the difference between an informat and a format? Name three informats or formats.

13 Answers   Accenture, IBM,


diff between nodup rec and ondup key???

3 Answers   AON, Sciformix,


Categories