Create a native COBOL project

  1. In Visual Studio, click File > New > Project. The Create a new project dialog box appears.
  2. In the Create a new project dialog box, select COBOL from the Language drop-down list.
  3. In the center pane, select Native and Console Application. This opens the Configure your new project dialog box.
  4. In the Project name field, type JSONGenerate as a name for the project.
  5. In the Location field, browse to a directory where you want to put this tutorial, for example C:\Tutorials.
  6. 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.
  7. Right-click Program1.cbl and click Rename. Rename the COBOL file to JSONGenr8.cbl.
  8. To build the solution, click Build > Build Solution.
  9. 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.