BookmarkSubscribeRSS Feed
rkaur17
Calcite | Level 5

Hi, created this code but cannot solve the messages in the error code. Attached screenshot. 

4 REPLIES 4
Jagadishkatam
Amethyst | Level 16

Instead of the proc import , use libname to create the library and then run the remaining code

 

libname p1 '/home/u42928787';

 

Thanks,
Jag
rkaur17
Calcite | Level 5

Hi,

 

I am using sas studio. Would that still work?

Jagadishkatam
Amethyst | Level 16
you can try
Thanks,
Jag
ballardw
Super User

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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1154 views
  • 1 like
  • 3 in conversation