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
How would you define the end of a macro?
Tell me more about the parameters in macro? : sas-macro
What does the RUN statement do?
explain the main difference between the nodup and nodupkey options? : Sas-administrator
What does the trace option do?
how does sas handle missing values in sort order? : Sas programming
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
Where do you use proc means over proc freq?
Mention what is the difference between nodupkey and nodup options?
what are sas bi dashboard components? : Sas-bi
how will you locate the sas platform applications? : Sas-bi
How to create an external dataset with sas code?
how do you debug and test your sas programs? : Sas programming
Compare sas with other data analytics tools.
What is the good sas programming practices for processing large data sets?