Hi I am reading an example in SAS Essentials by Elliot (pg. 137) screenshot as follow When I run the code without the two semicolons I circled, the result is exact the same as with the two circle semicolons. the only difference is the there are two syntax error in the log they are What is the point of the two semicolon in the INPUT statement if SAS can generate the result them? I thought the purpose of the semicolon is to close a statement, when the first semicolon exist, should it immediately terminate the input statement? ERROR 22-322: Syntax error, expecting one of the following: a name, arrayname, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_. ERROR 76-322: Syntax error, statement will be ignored. here is the code if anyone is interested DATA DATES;
INPUT @1 BDATE MMDDYY8.;
TARGET=MDY(08,25,2009);
* Uses MDY() function;
AGE=INTCK('YEAR',BDATE,TARGET); * INTCK function;
DATALINES;
07101952
07041776
01011900
;
PROC PRINT DATA=DATES;
FORMAT BDATE WEEKDATE. TARGET MMDDYY8.;
RUN;
... View more