Hello, I'm knew to SAS. I'm trying to understand what the If/else statement is accomplishing in this code.
IF dateCommaFinder = 0 THEN
DO
date = input(strDate,MMDDYY10.);
FORMAT date MMDDYY10.;
day = day(date);
mnth=month(date);
year=year(date);
END;
ELSE
DO
date3 = SUBSTR(strDate, dateCommaFinder+2);
dateSpaceFinder=INDEX(date3, ' ');
month = SUBSTR(date3, 1, dateSpaceFinder);
SELECT (month);