AS/400 library

AS/400 library

A library (*LIB) on the AS/400 is an object that is used as a system directory to keep track of other objects. (It is also keeps track of PTFs in AS/400 system libraries.) (The other directories that can be used are the directory (*DIR) and folder (*FLR) objects.)

Objects are not actually stored in libraries. They're really nothing more than namespaces, but it's easier to refer to an object as being "in" or "stored in" a library.

Certain types of the object (database file, storage areas and executable program objects) can be compiled, copied, and stored into/from many different libraries concurrently, with the Library List hierarchy determining which instance of the object to use during execution of any application that utilizes that object name. There are commands to help move objects around, and objects may be qualified at compile time to point to specific other objects statically at runtime, in order to circumvent the Library List.

Other types of objects, designated as "system" objects cannot be replicated. Libraries are a "system" object, and therefore only one instance of any given Library "name" is possible. They're made to appear as if they're stored in the QSYS library. Other "system" objects include user profiles (*USRPRF), configuration objects (*LIND, *CTLD, & DEVD), etc.

hop Standards

On systems with hierarchical filing systems the norm is to have many directories, most of which are contained one within the other, and with a moderate number of files in each directory. Since libraries cannot be stored within other libraries on the AS/400 and because historically the library list was always so small, the opposite became the norm; small numbers of libraries each of which contain large numbers of objects.

Most homegrown applications have between one and three libraries. Some have program, source, and file objects together in one library. With shops that have a huge amount of data and a small backup window they usually split the database files into a separate data library and keep the source and programs in another library. In companies with a separate development systems they tend to split it further by placing the source into its own library.

Generally speaking all libraries created by IBM for use by the operating system begin with the letter 'Q'.

IBM Standard Libraries:
*QSYS - System Parent Library
*QSYS2 - System Library for CPI's
*QHLPSYS - Online Documentation
*QUSRSYS - System Library for Users
*QTCP - TCP Connectivity Utilities
*QAFP - Advanced Function Printing
*QGPL - General Purpose Library
*QTEMP - Job specific temporary Library (deleted when the job ends)Test Library

AS/400 and SQL

Most DBMS systems use SQL-based terminology to describe objects. The AS/400's terminology is unique to the AS/400 and may have generated some confusion. High-level languages have often been preferred over SQL with AS/400 programming, due to actual or perceived performance reasons. As SQL programming has become more common on the AS/400, both traditional and SQL-based methods have become available to create and use objects, depending on preference or need. For the most part, traditional library-based objects are the same as SQL objects, with at least equivalent capabilities. For example, a Library is a Schema, a Physical File is a Table, a Logical File is a View, and an Access Path is an Index.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • AS/400 Library List — Most systems have a way to find objects when a specific path is not specified. The same is true of the AS/400 and it uses an object called the library list (*LIBL). This object doesn t exist on its own and is always associated with another object …   Wikipedia

  • Library science — is an interdisciplinary science incorporating the humanities, law and applied science to study topics related to libraries, the collection, organization, and dissemination of information resources, and the political economy of information.… …   Wikipedia

  • Library Hotel — The Library Hotel is a 60 room boutique hotel in New York City, located at 299 Madison Avenue (at 41st Street), near the New York Public Library, Bryant Park, and Grand Central Terminal. The Hotel was designed by architect Stephen B. Jacobs.The… …   Wikipedia

  • library — /luy brer ee, breuh ree, bree/, n., pl. libraries. 1. a place set apart to contain books, periodicals, and other material for reading, viewing, listening, study, or reference, as a room, set of rooms, or building where books may be read or… …   Universalium

  • Library (UTA station) — Infobox Station style= image size= name=Library address=225 East 400 SouthSalt Lake City, UT [cite web |url=http://rideuta.com/images/08NEWRailCarMap.jpg|title=UTA Rail System Map |accessdate=2008 05 31 |publisher=Utah Transit Authority |format=… …   Wikipedia

  • Corporate Library, the — A U.S. online resource center for Corporate governance. Established in 1999, the Corporate Library is an independent investment firm. Its Web site has many free resources as well as subscriber only services, and it has valuable links to other… …   Auditor's dictionary

  • Maricopa County Library District — (est. 1929) is a public library system located in central Arizona. The Library District serves unincorporated areas in Maricopa County, Arizona in addition the District partners with cities/towns and school districts to operate their libraries.… …   Wikipedia

  • Salt Lake City Public Library — Infobox nrhp | name =Salt Lake City Public Library caption = An internal view of the main library location = Salt Lake City, Utah lat degrees = lat minutes = lat seconds = lat direction = long degrees = long minutes = long seconds = long… …   Wikipedia

  • Nevada State Route 400 — State Route 400 Unionville Road Route information Maintained by NDOT Length …   Wikipedia

  • National Library of the Philippines — Pambansang Aklatan ng Pilipinas Biblioteca Nacional de Filipinas …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”