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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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