Defining or Deleting a Library

After coding a library using the Lawson Editors, move it to the correct directory. Use the Library Definition (libdef) utility to add it to the list of libraries that bldsh uses to copy code into the program shell during compilation.

To define a new library

  1. On the Program Definition form, press Action (F4) and choose Transfer.

    - or -

    From the Environment Utilities or Application Development Workbench menu, choose Programmer Utilities, then Program Maintenance Tools.

    - or -

    At the command line type libdef (Skip step 2).

  2. Choose Library Definition.

  3. On the Library Maintenance form, fill in the fields as described in the following table.

    In this field Type or Select (F4)
    Product Line

    The product line of the library you want to define, if the library is product line specific.

    Leave this field blank for global libraries.

    Library Name

    The name of a new library file. (For more information, see the paragraph below, describing how to redefine or delete an existing library.)

    WsLibs, Work Files, and library routines then display.

    Note: If a routine does not appear in the list, the source file has an error; for example, a missing SECTION heading.
    Type

    Pdlib for procedural code routines.

    Wslib for data declarations.

    Note: You can only edit this field for new libraries.
    System Code

    A system code for non-global library definitions.

    Leave this field blank for global libraries.

    WsLibs Displays up to 80 working storage libraries with room to define/view up to 50 more that contain variable declarations for a Procedure Division (PD) library.
    Work Files

    The names of up to 50 existing work files used by a Procedure Division (PD) library.

    Press Define (F6) to edit a work file definition.

  4. Press OK twice to save the library definition.

To redefine or delete an existing library

  1. Edit and save the library using the Lawson Editors (led/lx).

    If you add routines to an existing library, you must define it again through Library Definition.

  2. Enter the library name on the Library Definition form.

  3. Press Delete (F9).

  4. Press OK. The library is deleted.

  5. Follow the instructions above to redefine the library.