The data set march flights has all of an airlines flights scheduled for march and flight delays has the corresponding delay information, if it exists. Each flight is identified by both a flight date and a flight number. I want to display flight date, flight number, destination, and length of delay. I'm trying to use an outer join to show all the matching and non matching information and for some reason my code isn't working. any ideas? Heres my code.
Your Syntax on your join is incorrect. Change your comma's to AND.
left join hw2.flightdelays as d on m.flightnumber=d.flightnumber AND m.date=d.date AND m.destination=d.destion
Your Syntax on your join is incorrect. Change your comma's to AND.
left join hw2.flightdelays as d on m.flightnumber=d.flightnumber AND m.date=d.date AND m.destination=d.destion
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.