Entering Source Statements into a Source Member

This chapter provides the information you need to enter your ILE COBOL source statements. It also briefly describes the tools and methodology necessary to complete this step.

To enter ILE COBOL source statements into the system, use one of the following methods:
  1. Enter source statements using the client product editor. This is the method documented in the Editor section of the help.
  2. Enter source statements using the Source Entry Utility (SEU). This is the method documented in this chapter.
  3. Enter the source statements from a diskette or a tape by using the IBM® i CL commands, CPYFRMTAP and CPYFRMDKT.

    To obtain information on how to enter source statements using the CL commands, refer to the CL and APIs section of the Database and File System category in the IBM i Information Center at this Web site -http://www.ibm.com/systems/i/infocenter/.

  4. Enter the source statements into a stream file using the Edit File (EDTF) CL command. This command is a general purpose stream file editor that can also be used to enter ILE Cobol source statements. However, this editor does not provide syntax checking capability and special format lines like SEU to aid in source entry. If you want to store your ILE Cobol source statements in a stream file but also want to use the syntax checking features of SEU, perform the following steps:
    • Enter the source statements into a file member using SEU
    • Use the Copy to Stream File (CPYTOSTMF) command to copy the contents of the file member to a stream file