3 1 What is a LANSA system

LANSA for i

3.1 What is a LANSA system?

A complete LANSA system is comprised of the LANSA program library, LANSA data library, and system partition library.

By loading a second set of these libraries (using different library names), you install a second complete system.

When you installed the LANSA software onto your IBM i, these libraries are supplied:

DC@PGMLIB

The LANSA program library.

DC@DTALIB

The LANSA data library.

DC@MODLIB

The "SYS" or system partition library.

 

LANSA Program Library

The LANSA program library (DC@PGMLIB) contains the executable objects that run the developer menus and panels. For example, the program which allows you to enter field definitions is stored in this library.

LANSA Data Library

The LANSA data library (DC@DTALIB) contains the internal Database files used by the LANSA software. The files in this library contain system level information such as the definitions of all LANSA created objects. These definitions are stored in internal LANSA files, with their partition identifier as a part of the record key.

Note: The LANSA system objects are stored in two libraries to facilitate backup. The LANSA program library only needs to be backed up infrequently. However, the LANSA data library should be backed up regularly.

System (SYS) Partition Library

The "SYS" partition library (e.g. DC@MODLIB) for the common LANSA system definitions.

Application Libraries

When you create new partitions, LANSA does not create the partition library or libraries. You will have to manually create these libraries before you create the partition, if they do not already exist.

The partition creation screen gives you the option of using one or two partition libraries:

  • a "program" or executable objects library (Module library).
  • a library to contain the "data" objects (Default file library).

The program (module) library will contain the executable objects, such as functions. It is also possible to specify that I/O Modules will be created in this library, but, by default, they will be created with the file in the file library.

The "data" is the LANSA definition in Repository. The actual data files are wherever you have created them. This data library is the default library for files, but they can be located anywhere.

Only two libraries are generally needed when developing applications using LANSA.

The module library is mandatory and is unique to the partition.

The data library can be the same as the module library or any library of your choice.