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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what can you learn from the sas log when debugging? : Sas programming

871


How would you identify a macro variable?

879


What is the difference between INPUT and INFILE ?

1022


What sas features do you use to check errors and data validation?

993


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

985


Name validation tools used in SAS

937


What is a method to debug and test your SAS program?

1028


what is ae onset date n what is RDS

2187


how will you location sas platform applications available from web browser? : Sas-bi

841


what is program data vector? : Sas-administrator

877


How to include or exclude specific variables in a data set?

911


how can you put a "trace" in your program? : Sas programming

845


How to sort in descending order?

1042


Mention some common errors that are usually committed in sas programming.

852


What is the basic structure of a sas program?

851