I am writing this script that generally works
Define SM_User = \'&SomeSchemaUser\' Define SM_Password = \'&SomeSchemaPassword\' SPOOL mylogFile.log a