Developer Documentation Library > Scripting > UNICOM Intelligence Function Library > Script only functions
 
Script only functions
The UNICOM Intelligence Function Library contains several functions that are intended for scripting, but are not intended for use in Data Model queries. These functions include ShellExecute, CreateObject, InputBox, and Sleep. To ensure that these functions are not called by Data Model expressions, which might compromise security, the ScriptOnlyFunctions registration setting specifies which functions are available only to mrScriptBasic and not to the Data Model.
Add ScriptOnlyFunctions to the registry under HKEY_LOCAL_MACHINE\SOFTWARE\SPSS\MR Function Library\mrFuncLib. Set its value to a a comma‑separated list of functions that should not be available to the Data Model. Any function that is in the list is not loaded for the Data Model, so it cannot be called by Data Model expressions. If a Data Model expression that contains a script-only function is executed, an error, “Function '%1!s!' is not defined”, is returned.