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

810


How to create list output for cross-tabulations in proc freq?

845


how does sas handle missing values in sort order? : Sas programming

718


What do you know about symput and symget?

939


How long can a macro variable be? A token? : sas-macro

931


what is transformation in sas data integration? : Sas-di

762


How can you create a macro variable with in data step? : sas-macro

774


What commands are used in the case of including or excluding any specific variables in the data set?

828


How would you identify a macro variable? : sas-macro

760


what is function of retain statment

1781


Mention what is the difference between nodupkey and nodup options?

783


How do you control the number of observations and/or variables read or written?

1011


what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi

849


Differences between where and if statement?

782


How can I remove header from output data set?

2326