Module

setup

Setup an Edit session

Parameters:
Name Type Attributes Description
logonPayload logonPayload

information for connecting to Viya

appControl appControl

control information

sessionID string <optional>

if specified, this session will be used.Must match source

returns appEnv to control the flow

promise
Example
const appEnv = await setup(logonPayload, appControl);
 The setup method does the following:
   1. Create a session based on the source
   2. Optionally run the appInit handler (if specified)
   3. Optionally run the preamble code (if specified)
   4. Return the appEnv object.

   The appInit handler and the preamble code can be used to setup related information, create
   temporary tables etc...