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 / poornima
data poo;
infile 'D:\poo.txt ';
input rank country $ 12. salary ;
INFORMAT SALARY COMMA10.;
FORMAT SALARY COMMA10.;
run;
proc print;
run;
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
explain the proc in sas? : Sas-administrator
In sas, what are the areas that you are most interested in? : sas-grid-administration
how does sas handle missing values in sort order? : Sas programming
Describe crosslist option in tables statement?
What is the difference between reading data from an external file and reading data from an existing data set?
Differentiate between sas functions and sas procedures.
How does the internal authentication work in sas? : sas-grid-administration
what is the basic structure sas administrator? : Sas-administrator
what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming
How do you delete duplicate observations in sas?
what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake
how to change the execute of macro
is data integration and etl programming is same? : Sas-di
how to generate the test data in sas without input data? : Sas-administrator
What is the difference between %local and %global? : sas-macro