I am interested in knowing if there is an existing tool / technique to convert proc sql statements into actual SQL / plSQL commands (that are sent to SQL server).
For example SAS code:
proc sql ; select datepart(date_time_column) as date format date9. from table; quit;
to PLSQL code:
SELECT TO_CHAR(date_time_column, 'DDMONYYYY') DATE FROM TABLE;
Background: I have a bunch of Proc SQL code just to fetch the data from source tables, and I need to automate it by creating a schema that matches our current workflow. The SAS specific functions such as "format date9." or "datepart" are many of the culprits that are slowing down the process of code conversion. So I am looking for better solutions that can provide me the actual PlSQL code that is being sent to the server using currently working SAS code.
All the pointers and suggestions will be greatly appreciated.