Brooks Computing Systems - Jacksonville
Visit Brooks Computing Systems
Mainframes, Desktops & Web Sites
To edit a COBOL program in VS Code using GnuCOBOL in Gentoo, follow these steps:
To edit a COBOL program in VS Code on Gentoo using GnuCOBOL, follow these steps:
- Download the stable 64-bit version from Arnold Trembley’s GnuCOBOL Downloads page.
- Create a folder (e.g., `C:\gnuCobol`) and extract the downloaded files into it.
- Download and install VS Code from the official website.
- On the first launch, open the folder `C:\gnuCobol`.
- Open the Extensions tab in VS Code.
- Search for and install the following extensions:
- **OpenCOBOL-AI Language Support** (provides syntax highlighting and error checking).
- **COBOL Support** (offers additional features like code formatting).
- In the VS Code explorer, right-click on the `gnuCobol` folder and select **New File**.
- Name the file (e.g., `program.cob`).
- Edit the file using the COBOL syntax provided by the extensions.
- Open the terminal in VS Code (**Terminal > New Terminal**).
- Navigate to the folder containing your COBOL program.
- Compile the program using the command `cobc -Wall -o program program.cob`.
- Run the compiled program with `./program`.
For more details, refer to the [Cobol Ninja Guide](https://cobol.ninja/using-gnucobol-on-windows/).
Quality, Reliability &
Service Consultancy for Mainframes, Desktops & Web
Sites