< Previous | Next >

Lesson 9: Adding build artifacts and associating them with language definitions

You are now ready to define the artifacts your new project requires. You will create a COBOL source file, and then a file that contains the bind instructions for the link-editor. You will also associate these resources with language definitions.
  1. Select the COBOL folder, right-click it to show the context menu, then click New > zFolder.
  2. Specify HELLO.cbl as the zFile name.
  3. Select the COBOL language definition.
  4. Click Finish.
  5. Double-click HELLO.cbl.
  6. Enter the following in the source editor and click File > Save. You can cut and paste from the following example.
    Important: The first character should start on the eighth column.
           IDENTIFICATION DIVISION.
           PROGRAM-ID. HELLO.
           PROCEDURE DIVISION.
           MAIN.
               DISPLAY 'Hello, world.'.
               STOP RUN.
  7. Select the LINK folder, right-click it to show the context menu, then select New > zFile.
  8. Specify HELLO.lnk as the zFile name.
  9. Select the LINKEDIT language definition.
  10. Click Finish.
  11. Double-click HELLO.lnk.
  12. Enter the following in the source editor and click File > Save. You can cut and paste from the following example.
    Important: The first character should start on the second column.
    INCLUDE SYSLIB(HELLO)
    NAME HELLO(R)
  13. Switch to the Work Items perspective.
  14. Open the Pending Changes view.
  15. Check in and deliver all changes.
< Previous | Next >

Feedback