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
where are dashboard components are created and maintained? : Sas-bi
explain about data integrator metadata reports? : Sas-di
What was the last computer book you purchased? Why?
How do you control the number of observations and/or variables read or written?
Hi Friends, Am Priya,new to your forum. am looking for Interview questions on SAS Platform Administration. I searched everywhere but I couldn't find them,please can anyone help me with complete interview questions normally everyone will face in the interviews on SAS Administration. am really facing problems in the interviews,am not able to answer any of their questions. I would really appreciate all your help if you can email the complete Interview Questions to priyafeb84@gmail.com Kindly awaiting for your reply with eager
what can you learn from the sas log when debugging? : Sas programming
how do you debug and test your sas programs? : Sas programming
What are the parameters of scan function?
Explain the main difference between the sas procedures and functions? : Sas-administrator
If a variable contains only numbers, can it be a character data type?
What is the difference between %put and symbolgen? : sas-macro
Describe a time when you were really stuck on a problem and how you solved it?
What are the functions which are used for character handling functions?
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?
explain the difference between proc means and proc summary?