3 2 1 Which LANSA Open Function to Use and When

LANSA Open Guide

3.2.1 Which LANSA Open Function to Use and When

When using LANSA Open functions, there will always be a consistent structure to your program or application. Your applications will have four basic sections. These are:

Session Management (Open Session)

Opens a communication session with the host and  obtains the session identifier.

Session Definition

Defines the application-specific session characteristics for the host.

Data Access

Accesses data on the host.

Session Management (Close Session)

Closes an opened host session.

 

The majority of the LANSA Open functions are only executed in one of these sections. Which functions go where is explained in this section.

The sample programs supplied with the LANSA Open software, as well as those provided on LANSA's web site show you how these functions are used in an application.