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
What is the use of stop statement?
how many types of prompts are there? : Sas-bi
What is the difference between INPUT and INFILE ?
what is study design in while working with SAS? what are screening variables in SAS?
what are several options for creating reports in web report studio? : Sas-bi
What is your favorite all time computer book? Why?
What is the good sas programming practices for processing large data sets?
Explain proc sort?
What is the use of divide function?
What does PROC print, and PROC contents do?
what is sas enterprise intelligence architecture? : Sas-bi
How to create list output for cross-tabulations in proc freq?
What is PROC in SAS?
Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?
Mention how to limit decimal places for the variable using proc means?