3 2 3 Session Definition

LANSA Open Guide

3.2.3 Session Definition

The session definition functions are used to define the characteristics of your application to the host. These functions must be performed before a session is opened. This information will be passed to the host when the session opens:

LceUseSystem

Specifies the host system to be used.

LceUsePartition

Specifies the partition to be used.

LceUseLanguage

Instructs the session to use the specified language.

LceSetSessionOption

Sets the file open option and the returned data format for the session, if different to the default options specified in the Configuration File.

LceSetCommitmentOn

Turns commitment control on.

LceSetCommitmentOff

Turns commitment control off.

LceUseUserId

Specifies the host User Identifier for this session.

LceUsePassword

Specifies the password corresponding to the host User Identifier.

LceUseFile

Specifies the files to be used in the session.

LceUseField

Specifies the fields to be used in the session.

LceUsePriority

Specifies the host job priority.

LceUseProcess

Specifies the process name for transaction stamping.

LceUseFunction

Specifies the function name for transaction stamping.

LceSetSelectOptions

Specifies the options to be used for the first SELECT and FETCH functions. These options can be changed during the session and are reset after each SELECT.

LceUseExceptionalArguments

Specifies exceptional arguments (X_RUN Parameters) to be used. This option should only be used with a host that supports X_RUN parameters.