Hi, created this code but cannot solve the messages in the error code. Attached screenshot.
Instead of the proc import , use libname to create the library and then run the remaining code
libname p1 '/home/u42928787';
Hi,
I am using sas studio. Would that still work?
Please do not post pictures of code or log entries. It makes it hard to post corrections of code.
Better is to copy the text from the Editor, or in the case error messages the entire block of code with the error messages, and on the forum open a code box using the {I} and paste the text. The code box is important as the message windows on the forum will reformat text moving diagnostic indicators that appear in many errors.
Example:
4 Proc freq data=sashelp.class 5 tables sex*age; ------ 22 202 ERROR 22-322: Syntax error, expecting one of the following: ;, (, COMPRESS, DATA, FC, FORMCHAR, NLEVELS, NOPRINT, ORDER, PAGE. ERROR 202-322: The option or parameter is not recognized and will be ignored. 6 run;
The underscores indicate that the word "tables" is unexpected . In this particular case because the Proc statement is missing a semicolon and TABLES is not an allowable option for the Proc Freq statement. The message shows what might be acceptable, starting with the ; and shows valid options.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.