Just throwing an idea (I don't have access right so untested). Perhaps a macro that holds the connect to stuff, and %include to your SQL script file (name pramterized and specified in the macro call). As @Tom I would like to know the reason for driving this through SAS.
... View more