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
What do you code to create a macro? : sas-macro
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
What are the five ways to do a table lookup in sas? : sas-grid-administration
Are you involved in writing the inferential analysis plan? Tables specfications?
Define run-group processing?
What are the prime responsibilities of data integration administrator? : Sas-di
List down the reasons for choosing sas over other data analytics tools.
Give some examples where proc report’s defaults are same as proc print’s defaults?
what are validation tools that are used in sas? : Sas-administrator
what is function of retain statment
Mention what are the data types does SAS contain?
Difference between nodup and nodupkey options?
Mention the validation tools used in SAS?
Do you know the features of sas?
What is the difference between the proc sql and data step?