SAS query that joins three types of databases - Oracle, SQL Server, DB2

We have a query that’s run in SAS that does joins across three different types of databases.

It’s a complex query that uses on-the-fly creation of tables and stored procedures to join the data, then export three Excel files from three queries against the tables that were created.

I’m flying blind here because I don’t know anything about SAS. Is there a way to connect to SAS from UiPath to run this query instead of doing it via the SAS UI to download the Excel files?