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
Describe the function and untility of the most difficult SAS macro that you have written.
Can you execute macro within another macro? : sas-macro
How to specify variables to be processed by the freq procedure?
What would be the value of month at the end of data step execution and how many observations would be there?
Which date function advances a date, time or datetime value by a given interval?
Give some examples where proc report’s defaults are different than proc print’s defaults?
What does proc print, and proc contents are used for?
what is the use of proc sql? : Sas programming
How do you delete duplicate observations in sas?
For what purpose would you use the RETAIN statement?
For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration
Name any two sas spawners? : sas-grid-administration
how to debug and test the sas program? : Sas-administrator
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
If a variable contains letters or special characters, can it be numeric data type?