This is the cause of your problem. You've partly commented a line and what is left isn't a valid SAS statement.
proc print data=/** Import an XLSX file. **/
Either remove the line entirely or change it so the whole line is a comment:
/** proc print data= Import an XLSX file. **/
Thank You Very Much!
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 .
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.