-
Launch
Visual COBOL
for Eclipse, and select an appropriate workspace.
-
While in the COBOL perspective, click
.
The
New COBOL Project dialog box appears.
-
In the
Project name field, type
JSONGenerate as a name for the project.
-
Click
Finish.
The project is created, and displayed in the COBOL Explorer pane.
-
Click
.
The
New COBOL Program dialog box appears.
-
In the
Program name field, type
JSONGenr8.
-
Click
Finish.
JSONGenr8.cbl is created, and displayed in the COBOL Explorer pane, under the COBOL Programs sub-folder of the project folder.
-
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.