BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
xliu1
Quartz | Level 8
proc sql;
create table JDC_Graduation as 
select T2.MAJOR_CODE, 
       count(distinct T1.UID) as InitialCohort,
       count(distinct T2.BA_GRAD_4_YEAR) as BA_4_YEAR,
	   (calculated BA_4_YEAR/calculated InitialCohort)*100 as JDC_GRAD_Rate_4YR,
       count(distinct T2.BA_GRAD_5_YEAR) as BA_5_YEAR,
	   (calculated BA_5_YEAR/calculated InitialCohort)*100 as JDC_GRAD_Rate_5YR,
       count(distinct T2.BA_GRAD_6_YEAR) as BA_6_YEAR,
	   (calculated BA_6_YEAR/calculated InitialCohort)*100 as JDC_GRAD_Rate_6YR
from Work.Journalism_Graduation (where=(STU_RECENT_ADM_TYP ='B' AND MAJOR IN ('MJM', 'MDJ', 'COM','MAS','JMS'))) T1
LEFT JOIN Work.Journalism_Graduation (where=(MAJOR_CODE IN ('MJM', 'MDJ', 'COM','MAS','JMS'))) T2 ON TI.UID = T2.UID
GROUP BY T2.MAJOR_CODE;
quit;

xliu1_0-1595104328418.png

 

I need help with this error message in sas log. How should I fix the syntax? Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

First, correct the typo TI → T1. Then rerun the code and check the log again.

View solution in original post

3 REPLIES 3
FreelanceReinh
Jade | Level 19

First, correct the typo TI → T1. Then rerun the code and check the log again.

xliu1
Quartz | Level 8

Thanks. It is a typo that I did not notice.

PaigeMiller
Diamond | Level 26

From now on, please do not provide logs as screen captures. The better way to provide the log is to ccopy it as text, and then paste it into the window that appears when you click on the </> icon. This would make everyone happier.

--
Paige Miller

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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