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

Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

1771


What are the prime responsibilities of data integration administrator? : Sas-di

591


How do you control the number of observations and/or variables read or written?

751


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

1585


Tell e how how dealt with..

1757






how could you generate test data with no input data? : Sas programming

635


how can you create zero observation dataset? : Sas programming

643


Describe a time when you were really stuck on a problem and how you solved it?

2086


Can you execute a macro within a macro? Describe. : sas-macro

676


Approximately what date is represented by the SAS date value of 730?

750


Mention what is SAS data set?

678


What is SAS? What are the functions does it performs?

736


what is information maps?

1618


What are pdv and it functions?

605


what is sas application server? : Sas-di

542