How do you read in the variables that you need?

Answer Posted / hitesh

You can read in the variable with INPUT statement.
There are more than 1 ways use input statement.

eg:
input name$ no sal;

...OR you can read selected fields from byte positions at which they appear in the input file.

eg:
INPUT @1 NAME $20.
@21 No 3.
@24 Sal 7.;

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out some key concept of SAS

621


describe how to adjust the performance of data integrator? : Sas-di

563


How substr function works in sas?

701


What is a macro routine?

2104


What is the basic structure of the SAS base program?

690






Give e an example of..

1845


For what purpose would you use the RETAIN statement?

1045


what is data governance? : Sas-di

625


how does sas handle missing values in assignment statements? : Sas programming

570


What are the different types of sas functions?

608


describe about physical data integration? : Sas-di

561


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

528


how can you create zero observation dataset? : Sas programming

639


What is the maximum length of the macro variable? : sas-macro

627


What system options would you use to help debug a macro? : sas-macro

640