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 are the ways in which macro variables can be created in sas programming?
Mention few capabilities of sas framework.
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately
which features do you use to check the data validations and errors? : Sas-administrator
if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming
what is treatment emergent events and treatment emregent adverse event
What are the limitations for memory allocation for SAS variables
What is the maximum length of the macro variable?
Mention how to limit decimal places for the variable using proc means?
How to create an external dataset with sas code?
what is program data vector? : Sas-administrator
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?
How is character variable converted into numeric variable and vice versa?
What are the default statistics that proc means produce?
explain the use of % includes a statement in sas? : Sas-administrator