09-24-2016 09:15 PM - edited 09-24-2016 09:16 PM
I have issue in executing this program. Can you please guide me on this? Is there problem with this code?
Your help is highly appreciated.
input @1 subject @4 date_of_birth mmddyy8. @12 visit_date date9.;@12 visit_date date9.;
format date_of_birth date9.
09-24-2016 09:44 PM
data dates; input subject $3. date_of_birth mmddyy8. visit_date date9.; format visit_date date9. date_of_birth mmddyy10.; datalines; 0011021195011Nov2006 0020802196212Dec2010 0030125195502Jan2011 ; run; proc print;run;
09-24-2016 09:46 PM - edited 09-24-2016 09:47 PM
The source of the problem is (as was indicated) reading in SUBJECT. Your program tells SAS to start at column 1, but doesn't tell it where to finish. As a result, SAS keeps reading until it either hits a blank or hits the end of the line,.
Need further help from the community? Please ask a new question.