I've not ventured back to VS Code for a fair while, so have some questions and things that need clarification.
My understanding for searching through the community posts what when you start vs code (such as from the command line 'code . ') if an existing .cblproj file exists it is read and the compile directives used, SQL directives and copybook paths.
I seem to find this isn't true. To locate my copybooks I ended up creating a cobol.dir file and used COPYPATH(C:\\MF\\COPY;C:\\MF\\CPB)
I also configured tasks.json:
{ "version": "2.0.0", "tasks": [ { "type": "COBOL-MSBuild", "command": "C:\\\\Program Files\\\\Microsoft Visual Studio\\\\2022\\\\Enterprise\\\\MSBuild\\\\Current\\\\Bin\\\\amd64\\\\MSBuild.exe", "buildTarget": "${workspacefolder}/MyProg.cblproj", "problemMatcher": [ "$COBOLMSBuild" ], "group": "build", "label": "COBOL: MSBuild (Compile Current File)", "compileSource": { "isDefault": true } } ]}But pressing CTRL + Shift +B resulted in:
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
msbuild.exe is at that location and its folder is also on the environment PATH.
In Visual Studio:
EXEC SQL INCLUDE SQLCA END-EXEC.
EXEC SQL BEGIN DECLARE SECTION END-EXEC. $set ILGEN $set ilusing "System"------------------------------
Neil Hayes
------------------------------



