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.
- Select the COBOL folder, right-click it to show
the context menu, then click .
- Specify HELLO.cbl as the zFile name.
- Select the COBOL language definition.
- Click Finish.
- Double-click HELLO.cbl.
- Enter the following in the source editor and click . 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.
- Select the LINK folder, right-click it to show the
context menu, then select .
- Specify HELLO.lnk as the zFile name.
- Select the LINKEDIT language definition.
- Click Finish.
- Double-click HELLO.lnk.
- Enter the following in the source editor and click . 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)
- Switch to the Work Items perspective.
- Open the Pending Changes view.
- Check in and deliver all changes.