Hello, I am running into a lot of problems trying to read a text file on my computer into SAS. There are 6 variables in the dataset and I created a user defined format for one of the variables. I've tried many variations of the code below, but I continue to get errors. Can someone help me troubleshoot? The informat step is what it seems to have a lot of trouble with, because it underlines the 5 and gives me this error: ERROR 22-322: Syntax error, expecting one of the following: a name, -, ;, DEFAULT, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_. ERROR 76-322: Syntax error, statement will be ignored. data hospital; infile hosp truncover; informat date date7. 5-12; format date delay delaytime.; input number 1-4 date $ 5-12 Departure $ 13-16 Arrival $ 17-20 Type $ 21-34 Delay 35-36 ; run;
... View more