ILE COBOL Programmer's Guide


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 Start Source Entry Utility (STRSEU) 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 OS/400 copy function. For information on the OS/400 copy function, see the CL and APIs section of the Programming category in the iSeries 400 Information Center at this Web site -http://www.ibm.com/eserver/iseries/infocenter.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]