- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 05-22-2023 06:29 PM
(755 views)
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Pasting text as pictures makes it very hard to read.
You define table aliases using different two letter abbreviations than the aliases you use in the WHERE clause.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Your ON clause has a typo: It shouldn't be on sc.SIN=ct.SIN, but ON ST.SIN=CT.SIN
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
FYI - the fact that the data from Excel is really only minimal relevant. Once you've imported it, it's a SAS data set. You should take the time to review this to make sure it's occurred correctly, ie variable names, labels and types are correct and values were read in correctly.