[ ALL_RESOURCES ] [ DATABASE ] [ MODERNIZATION ] [ NEWS & UPDATES ] [ PROGRAMMING ] [ SECURITY ] [ SYSTEMS & ADMIN ]
TYPE_ARTICLE FILE_REF: 0x14

Create Library and Source Physical Files

> ANALYSIS_OF: CREATE_LIBRARY_AND_SOURCE_PHYSICAL_FILES_

Creating Libraries and Source Physical Files on IBM i
IBM i systems are known for their robust data management capabilities. One of the fundamental tasks in managing data on IBM i is the creation of libraries and source physical files. Libraries serve as containers for organizing objects, while source physical files are essential for storing source code.
  • Step 1: Create a Library - Use the command CRTLIB LIB(library_name) to create a new library. This library will house your source physical files and other objects.
  • Step 2: Create a Source Physical File - After creating the library, you can create a source physical file using the command CRTSRCPF FILE(library_name/source_file_name). This file will hold your source code.
  • Step 3: Add Source Members - Once the source physical file is created, you can add members to it using the ADDMBR command, allowing you to manage multiple source code versions.
  • Step 4: Manage Libraries and Files - Regularly review and manage your libraries and source files to ensure optimal organization and accessibility.
Conclusion
Creating libraries and source physical files is a straightforward process that enhances the organization of your development environment on IBM i. Proper management of these components is crucial for efficient programming and data handling.
SOURCE: as400i.com [ ACCESS_EXTERNAL_SOURCE ]