It is not so clear what your trying to do here, please try to provide a sample data and your required result.
If your trying to run the same query you posted then make sure you have the quotes for the file path in the Libname statement and remove the quit before where clause.
Can you show us an example of what your data looks like? Makes it much easier to help you.
So, first of all, you have several syntax errors:
1. No closing comma on the libname statement;
2. No comma after b.Loannumber;
3. No alias set for b.Name and a.Lineavailable;
4. "INNER JOIN AUTOLOAD.DIM_ACCOUNT f ON g.AccountNumber = g.AccountNumber" --> this whole line is strange as you're trying to make an inner join after several left joins (good luck controlling that!) of the table aliased as f but on a variable of table g (which does not exist in your query) with itself (!)
5. Speaking of table aliased as g, despite not existing in your query, you're trying to get two variables (g.QATPostingDate, g.SICCodeValue81)) of it! And you're ending that line with a closing parenthesis that doesn't have a "companion" opening anywhere in your query.
6. The QUIT; before the where can't be there.
So, first solve all these issues, and then post clearly what is missing from your requirements.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.