IBM Support

Using Library Statements in a System/36 Environment OCL

Troubleshooting


Problem

This document contains a summary of the IBM System/36 Environment library SESSION parameter and explains when the library list is searched.

Resolving The Problem

This document contains a summary of the IBM System/36 Environment library SESSION parameter and explains when the library list is searched.

IBM System/36 Environment FLIB, FILELIB and LIBRARY

A.The SESSION and LIBL parameter have an effect on which library statement should be used.

SESSION-YES: The change takes effect after the current System/36 job ends (outermost procedure). It remains in effect until the session ends or the session values are changed.

SESSION-NO: The change takes effect immediately and remains in effect until the current procedure (outermost procedure) ends or until the current values are changed again.

LIBL-YES: The library list is searched for database files. The library for the current file is not searched unless it is in the library list.

LIBL-NO: The library list is not searched for database files. Only the library for the current file is searched.
B.SLIB

o Used to change the current session library, the system will search this library for procedures, programs, menus, display formats, and message members. If you do not specify a file's library before batch job submission, the session library will be used as the default.

o The LIBL is searched if the object is not found in the session library.

o SESSION-YES

o This library remains the session library until you sign off or enter another SLIB procedure, MENU OCL statement, or command with a library parameter. Enter a LIBRARY OCL statement with SESSION-YES in a procedure.
C.FLIB

o SESSION-YES

o LIBL is the default but can be changed to NOLIBL.
D.// FILELIB

o SESSION-NO is the default but can be changed to SESSION-YES.

o LIBL-YES is the default but can be changed to LIBL-NO.
E.// LIBRARY

o Searches the current library, #LIBRARY, and the library list.

o SESSION-NO is the default but can be changed to SESSION-YES.
F.Recommendations

o All of the above commands or statements can be used for interactive procedures.

o Because of the SESSION parameter, // FILELIB or // LIBRARY are recommended for batch processing.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

Historical Number

9634622

Document Information

More support for:
IBM i

Software version:
6.1.0

Operating system(s):
IBM i

Document number:
682923

Modified date:
18 December 2019

UID

nas8N1010041

Manage My Notification Subscriptions