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 / subbu
data s;
input no 1-2 area $ 3-15 am $ 16-30 ;
amount=input(am,comma15.);
format amount comma15.;
drop am;
cards;
1 new york 7,262,700
2 los angeles 3,259,340
3 philadelphia 1,642,900
;
proc print;
run;
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Define run-group processing?
how would you create multiple observations from a single observation? : Sas programming
Give some ways by which you can define the variables to produce the summary report (using proc report)?
I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com
What is SAS?
What do the SAS log messages "numeric values have been converted to character" mean?
How to create a permanent sas data set?
What do the put and input function do?
What are the features of base sas system?
Name few SAS functions?
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?
how would you determine the number of missing or nonmissing values in computations? : Sas programming
do you prefer proc report or proc tabulate? Why? : Sas programming
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
how does sas handle missing values in assignment statements? : Sas programming