1 new york 7,262,700
2 los angeles 3,259,340
3 philadelphia 1,642,900
how to read the above data using input statement
consider the above data is in txt format externally
u have to use infile and input statement.
Answer Posted / ravikumar
Answer:
data cityrank;
input rank 1-2 @3 city $13. @16 amoutnt comma15.;
datalines;
1 new york 7,262,700
2 los angeles 3,259,340
3 philadelphia 1,642,900
;
run;
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
How you can read the variables that you need?
name several ways to achieve efficiency in your program? : Sas programming
What is the purpose of trailing @ and @@? How do you use them?
what is broad cast agent? : Sas-bi
How can you create a macro variable with in data step? : sas-macro
How to specify variables to be processed by the freq procedure?
what are all the reports you generated in your recent project?
for what purpose would you use the retain statement? : Sas programming
what is study design in while working with SAS? what are screening variables in SAS?
Intern stastical programmer written test
what is sas database server? : Sas-di
Which function is used to count the number of intervals between two sas dates?
what are sas bi dashboard components? : Sas-bi
explain what is data set in sas? : Sas-administrator
Mention the difference between ceil and floor functions in sas?