Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to get any kind of data in SAS? Is it possible to take
data from notepad in SAS?

Answer Posted / naveen

Data sample_accounts;
INPUT Account 1-7 OpenDate $ 9-17 StatusCode $ 21-22
CreditLimit 25-29;
CARDS;
1234670 11-Sep-04 Z 2000
1234671 12-Sep-04 3000
1234672 13-Sep-04 Z 2500
1234673 14-Sep-04 T 3200
1234674 15-Sep-04 8000
run;

filename myfile "C:\Mydata\sample_accounts.txt";
data qqq;
infile myfile dlm=' ';
input Account OpenDate $ StatusCode $ CreditLimit;
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how does sas handle missing values in functions? : Sas programming

1222


what is operational data and operational system? : Sas-di

1116


How we can create SAS USER DEFINED CODE?

2102


Enlist the syntax rules followed in sas statements.

1089


what is sas data set?

1109


How to sort in descending order?

1263


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

1198


Can you execute macro within another macro? : sas-macro

1002


What are the ways in which macro variables can be created in sas programming?

1115


Enlist the functions performed by sas.

1130


What is PROC in SAS?

1059


Explain what is the use of proc gplot?

1203


What is proc sort?

1229


how does sas handle missing values in formats? : Sas programming

1148


What are the difference between the sas data step and sas procs?

1190