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
List out some key concept of SAS
How to create list output for cross-tabulations in proc freq?
how does sas handle missing values in sort order? : Sas programming
What do you know about symput and symget?
How long can a macro variable be? A token? : sas-macro
what is transformation in sas data integration? : Sas-di
How can you create a macro variable with in data step? : sas-macro
What commands are used in the case of including or excluding any specific variables in the data set?
How would you identify a macro variable? : sas-macro
what is function of retain statment
Mention what is the difference between nodupkey and nodup options?
How do you control the number of observations and/or variables read or written?
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
Differences between where and if statement?
How can I remove header from output data set?