Creating a Library and Source Physical File
Source statements are entered into a member of a physical file. Before you can enter your source, you must first create a library and a source physical file.
A library is a system object that serves as a directory to other objects. A library groups related objects and allows you to find objects by name. The object type for a library is *LIB.
A Source physical file is a file that stores members. These members contain source statements, such as ILE COBOL source statements.
To create a library called MYLIB, use the Create Library (CRTLIB) command:
CRTLIB LIB(MYLIB)To create a source physical file called QCBLLESRC in library MYLIB, use
the Create Source Physical File (CRTSRCPF) command:
CRTSRCPF FILE(MYLIB/QCBLLESRC)
Note: In the above example,
the library MYLIB must exist before you can create the source physical file.
For more information on creating library and source physical files, refer to ADTS/400: Programming Development Manager manual.
Once you have the library and source physical file created, you can start
an edit session. You can use the client product editor or the Start Source
Entry Utility command to start an edit session and enter your source statements.
Note: You can also enter your source program from diskette or tape with
the IBM i copy function. For information on the IBM i copy function, see
the CL and APIs section of the Programming category in the IBM i
Information Center at this Web site -http://www.ibm.com/systems/i/infocenter/.