INFILE tells SAS that you are going to write input specifications to read a text file. XLSX are not text files. A single RUN statement will end a data step.
You should show the entire log of the code submitted plus the error message. Copy from the log and paste into a code box opened with the forum's {I} or "running man" icon. The particular error you show should have at least one line of code with underscores indicating the invalid syntax. If you paste the entire code step with the error in a code box the format of the message will be maintained and we can provide more help.
Likely you wanted to manipulate something in the WORK.IMPORT data set. You reference that in a SET statement. Do not go back and attempt to reread the xlsx.
Something like this maybe. Note that while the syntax allows the same input and output set names doing so often leads to hard to diagnose data issues as the code would completely replace the original data set. If the logic is incorrect then you need to go back to get the original input set.
data work.import2;
set work.import;
observations = input(FRED_Graph_Observations, 10.);
b_int = input(B, 10.);
RUN;
RUN will end a data step block of code. So everything after your first RUN; was syntactically wrong as well. The input calls are only needed if the variable is character.
... View more