diff --git a/src/SASjs.ts b/src/SASjs.ts index f33c1eb..5f051d2 100644 --- a/src/SASjs.ts +++ b/src/SASjs.ts @@ -113,6 +113,9 @@ export default class SASjs { debug?: boolean ) { this.isMethodSupported('executeScriptSASViya', [ServerType.SasViya]) + + contextName = contextName || this.sasjsConfig.contextName + if (!contextName) { throw new Error( 'Context name is undefined. Please set a `contextName` in your SASjs or override config.'