PROC SQL is not going to work identically on Oracle or SQL server SQL. It's going to have a lot of similarities, and it's very feasible to make ANSI SQL code. SAS has its own implementation of SQL.
You might also want to look into
PROC FEDSQL, which is fully 1999 ANSI compliant.