Skip to content

Add %SASsession magic

Compare
Choose a tag to compare
@jld23 jld23 released this 21 May 18:47
· 20 commits to main since this release
83678c2

If you had more than one configuration in you sascfg.py (sascfg_personal.py) then you had to go through a number of prompts for each new notebook with the SAS Kernel.

The SASsession magic allows you to pass those parameters to reduce that burden.

The parameters should be seperated by a ','

Below are a few examples. Under normal conditions this magic would be call at most once in the first cell.

%SASsession cfgname='viya4'
%SASsession  omruser='jadean', cfgname='iomviya',
%SASsession cfgname='viya4_trial', authcode='ELMRoFYAFI'

This will not allow you to change parameters if lockdown is enabled.
Included passwords is still STRONGLY discouraged.