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
Name some categories in sas 9? : sas-grid-administration
what is sas metadata repository? : Sas-bi
what is function of retain statment
What is interleaving in SAS?
name several ways to achieve efficiency in your program? : Sas programming
If you were told to create many records from one record, show how you would do this using array and with proc transpose?
In proc transpose and data step with arrays which one you pick?
How do dates work in SAS data?
Explain how you can debug and test your SAS program?
what is business intelligence? : Sas-bi
how does sas handle missing values in functions? : Sas programming
name the scheduler for scheduling job and explain the scheduler? : Sas-di
what are 5 ways to perform a table lookup in sas? : Sas-administrator
Do you need to rearrange the order of the data for the report?
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?