BookmarkSubscribeRSS Feed
kjyon2
Calcite | Level 5
I have obtained an error message when running the Proc Univariate for my datasets.
Can anyone assist me in overcoming this error?
The error result is shown below and see attachment::
 
Proc univariate data=asmt_raw_cervical_cancer;
61 var Age , Number_of_sexual_partners , 'First_sexual_intercourse_(age)'n , Number_of_pregnancies , 'Smokes_(years)'n ,
_
______
______
22
49
49
76
61 ! 'Smokes_(packs/year)'n, 'IUD_(years)'n, 'STDs_(how_many?)'n, Number_of_diagnosis'n , 'STDs_Year_since_first_diagnosis'n ,
61 ! 'STDs_Year_since_last_diagnosis'n;
ERROR 22-322: Syntax error, expecting one of the following: a name, ;, -, :, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_.
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space
between a quoted string and the succeeding identifier is recommended.
ERROR 76-322: Syntax error, statement will be ignored.

error_running_proc_univariate.PNG
2 REPLIES 2
ballardw
Super User

For future reference, paste code from the log with error messages into a code box using the forum {i} icon. That will preserve the plain text format of the log and the underscore characters, which show where SAS detected the error will align correctly. The main message windows on this forum will reformat pasted text otherwise.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 2 replies
  • 954 views
  • 2 likes
  • 3 in conversation