Create a library

To create a library, use the Create Library (CRTLIB) command.

For example, the following Create Library (CRTLIB) command creates a library to be used to contain order entry files and programs. The library is named DISTLIB and is a production library. The default authority given to the public prevents a user from accessing the library. Any object created into the library is given the default public authority of *CHANGE based on the CRTAUT value.

CRTLIB   LIB(DISTLIB) TYPE(*PROD) CRTAUT(*CHANGE) 
CRTOBJAUD(*USRPRF) +
         ASP(1) ASPDEV(*ASP) AUT(*EXCLUDE) TEXT('Distribution library')

You should not create a library with a name that begins with the letter Q. During a generic search, the system assumes that most libraries with names that begin with the letter Q (such as QRPG or QPDA) are system libraries.

Related tasks
Use generic object names
Related information
Create Library (CRTLIB) command