🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 07-18-2020 04:32 PM
(1859 views)
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;
I need help with this error message in sas log. How should I fix the syntax? Thanks.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
First, correct the typo TI → T1. Then rerun the code and check the log again.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
First, correct the typo TI → T1. Then rerun the code and check the log again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. It is a typo that I did not notice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
Paige Miller