It helps to post log results or code into code box opened on the forum using the {I} icon to preserve formatting.
Such as:
14 proc print data=/** Import an XLSX file. **/
15
16 PROC IMPORT DATAFILE="/folders/myfolders/U2_A1FBStockPrice.xlsx"
------
22
76
ERROR 22-322: Syntax error, expecting one of the following: ;, (, BLANKLINE, CONTENTS, DATA,
DOUBLE, GRANDTOTAL_LABEL, GRANDTOT_LABEL, GRAND_LABEL, GTOTAL_LABEL, GTOT_LABEL,
HEADING, LABEL, N, NOOBS, NOSUMLABEL, OBS, ROUND, ROWS, SPLIT, STYLE, SUMLABEL,
UNIFORM, WIDTH.
ERROR 76-322: Syntax error, statement will be ignored.
17 OUT=WORK.FB_StockPrice
18 DBMS=XLSX
19 REPLACE;
20 RUN;
Now it is possible to see that the diagnostics indicate the proximate error is the word IMPORT. Which is not an option for PROC PRINT which is what the "expected" elements are: Proc Print options. The code was attempting to Print the dataset Proc due to the reasons pointed out by @SASKiwi .
... View more