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 JSONParse 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 JSONParse 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 JSONParse.cbl.
  8. Replace all the pre-defined code with the first program listed in Appendix A: The JSON PARSE program.
  9. By default, the code is set to use a file located at C:\JSONPROCESSING\DATA. Make sure this location exists.
  10. To build the solution, click Build > Build Solution.