Skip to main content
Question

Compiling the COBOL program in VS code

  • March 30, 2026
  • 1 reply
  • 15 views

Sanoop
Forum|alt.badge.img
  • Participating Frequently

Hello All,

I have integrated my COBOL libraries to VS code and now I am trying to compile the COBOL program using the  link https://docs.rocketsoftware.com/bundle/enterprisedeveloper_dg_100_html/page/vcd1746630418216.html

But i am getting error in the compilation, what are the parameters i have to give to take my copybooks available in 

                     "COPYEXT(cbl,CPY,COPYCOB,COPYDCL)",

                     "COPY\"G:\\MYLIB\\D000\\COPY\"",

                     "COPY\"G:\\MYLIB\\D000\\COPYDCL\"",

Please share your thoughts

            "windows": {
"command": "cobol.exe",
"args": [
{ "value": "${file}", "quoting": "escape"},
{ "value": "anim", "quoting": "strong"},
{ "value": "nognt", "quoting": "strong"},
{ "value": "errformat(3)", "quoting": "strong"},
{ "value": ";", "quoting": "strong"}
]

 

thanks

Sanoop

1 reply

Sanoop
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • March 30, 2026

Executing task: & 'cobol.exe' 'C:\Users\user\OneDrive - Myeas\Documents\MyCobolProject\SOURCE\PVAM11Q.PGCOBSD' COPYEXT(cbl,CPY,COPYCOB,COPYDCL) COPY"G:\MYLIB\D000\COPY" COPY"G:\MYLIB\D000\COPYDCL" C:\Users\user\OneDrive` -` Myeas\Documents\MyCobolProject\SOURCE\LVAM11Q.PGCOBSD 'anim' 'nognt' 'errformat(3)' ';' 

ParserError: 
Line |
   1 |  … Documents\MyCobolProject\SOURCE\PVAM11Q.PGCOBSD' COPYEXT(cbl,CPY,COPY …
     |                                                                                                                                        ~
     | Missing argument in parameter list.

 *  The terminal process "C:\Program Files\PowerShell\7\pwsh.exe -Command & 'cobol.exe' 'C:\Users\user\OneDrive - Myeas\Documents\MyCobolProject\SOURCE\PVAM11Q.PGCOBSD' COPYEXT(cbl,CPY,COPYCOB,COPYDCL) COPY"G:\MYLIB\D000\COPY" COPY"G:\MYLIB\D000\COPYDCL" C:\Users\user\OneDrive` -` Myeas\Documents\MyCobolProject\SOURCE\PVAM11Q.PGCOBSD 'anim' 'nognt' 'errformat(3)' ';'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it.