javascript
Brief description  about Online courses   join in Online courses
View shaweta  m 's Profile

syntax error

I have this data in file
00110/21/1955M 1145
00211/18/2001F 18722
00305/07/1944M 123.45
00407/25/1945F -12345

I am trying it by column input

data financial;
infile 'f:\sas\8.txt';
input Subj $ 1-3
DOB $ 4-13
Gender $ 14
Balance 15-21;
run;


But I am not getting output,,, Is there ant syntax error.
Asked by shaweta m | May 29, 2013 |  Reply now
Replies (1)
View SAS Instructor 's Profile
Hi Shaweta,
See the Correct program below.
there is no need to define column pointer for balance when you are extracting data using Infile statement.

data financial;
infile 'F:\sas\8.txt';
input Subj $ 1-3
DOB $ 4-13
Gender $ 14
Balance;
run;
proc print data= financial;
run;
Jun 4, 2013