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 / solasa
data cityrank;
infile 'D:\miths data\Mithelesh\cityrank.txt' ;
input rank city & $12. amoutnt comma10.;
run;
proc print data=cityrank;
run;
problem with amount varible
tell what to do?
| Is This Answer Correct ? | 3 Yes | 12 No |
Post New Answer View All Answers
What is a macro routine?
Where do you use proc means over proc freq?
Can you explain the process of calendar?
What is the different between functions and PROCs that calculate the same simple descriptive statistics?
hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
what are 5 ways to perform a table lookup in sas? : Sas-administrator
how do you test for missing values? : Sas programming
how could you generate test data with no input data? : Sas programming
Enlist the functions performed by sas.
what is sas database server? : Sas-di
for what purpose would you use the retain statement? : Sas programming
name several ways to achieve efficiency in your program? : Sas programming
Why and when do you use proc sql?
What are the statements that are executed only?