Create a native COBOL project

  1. Launch Enterprise Developer for Eclipse, and select an appropriate workspace.
  2. While in the COBOL perspective, click File > New > COBOL Project.

    The New COBOL Project dialog box appears.

  3. In the Project name field, type JSONGenerate as a name for the project.
  4. Click Finish.

    The project is created, and displayed in the COBOL Explorer pane.

  5. Click File > New > COBOL Program.

    The New COBOL Program dialog box appears.

  6. In the Program name field, type JSONGenr8.
  7. Click Finish.

    JSONGenr8.cbl is created, and displayed in the COBOL Explorer pane, under the COBOL Programs sub-folder of the project folder.

  8. Double-click JSONGenr8.cbl to display it, replace all the pre-defined code with the first program listed in Appendix A: The JSON GENERATE program, and then press Ctrl + S to save the program.

    If your workspace is set to build automatically, the program is compiled. If the workspace is not set to build automatically, on the Project menu, click Build Project.