In Visual Studio, click
File > New > Project.
The
Create a new project dialog box appears.
In the
Create a new project dialog box, select
COBOL from the
Language drop-down list.
In the center pane, select
Native and
Console Application.
This opens the
Configure your new project dialog box.
In the
Project name field, type
JSONGenerate as a name for the project.
In the
Location field, browse to a directory where you want to put this tutorial, for example
C:\Tutorials.
Click
Create.
Visual Studio creates the project in your chosen directory, and opens the
Solution Explorer to show the
JSONGenerate solution and project. It contains a skeleton program called
Program1.cbl and a
Properties folder.
Right-click
Program1.cbl and click
Rename. Rename the COBOL file to
JSONGenr8.cbl.
To build the solution, click
Build > Build Solution.
Replace all the pre-defined code with the first program listed in
Appendix A: The JSON GENERATE program. Click
File > Save All to save the program.