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