Skip to main content
Solved

Integrating Visual Studio Code with Rocket COBOL extension

  • December 10, 2025
  • 13 replies
  • 70 views

Sanoop
Forum|alt.badge.img
  • Participating Frequently

Hello Team,

Currently we have Enterprise developer already available in the system , I am trying to integrate VS Code using Rocket COBOL extension to do a BRD documentation using the Co-pilot features. We have two copybooks extension ,one with CPY and another COPYCOB. The intelisense is  able to identify the CPY copybooks but not the COPYCOB eventhough the extensions are mapped. Is there possibility to re-use the XML files of MFED for the integration of VS code.

Thanks

Sanoop

Best answer by Gael Wilson

Why are you still including quotes around the paths when I advised you not to?

If you specify ‘copypath’ twice the second one replaces the first one, it does not add the two values.

13 replies

Gael Wilson
Forum|alt.badge.img+1
  • Rocketeer
  • December 10, 2025

Hello Sanoop,

Which XML files are you referring to? The VS Code extension will pick up settings from Visual Studio project files but not Eclipse project files. Were you referring to Eclipse project files?

You said that the extensions are mapped. Can you explain what you mean?

In File → Preferences → Settings → Extensions → Rocket COBOL you can set Default Directives and they will be used when parsing source files. If you add the COPYEXT directive and include your extension that should give you the behavior you need eg

COPYEXT(cbl,CPY,COPYCOB)

 

 


Sanoop
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • December 10, 2025

Thanks Gael for quick reply, I was refering to  Eclipse project files. 

I did this option

In File → Preferences → Settings → Extensions → Rocket COBOL you can set Default Directives and they will be used when parsing source files

Still the COPY statement referring the to copy modules with extension COPYCOB is not detected by the program.

Since i wanted to use this BRD creation , i want the modules to be correctly detected by the module.

Where should i add the COPYEXT directive, in the setting.json file?


Sanoop
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • December 10, 2025

Thanks Gael, it worked i added the COPYEXT m thank you for your help and guidence


Sanoop
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • December 10, 2025

Another error now i am facing is on “No SQL directives have been set COBCH0149” is there , may be i need to set the SQL directive and give the connection to Dev DB?


Sanoop
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • December 10, 2025

In the program we have the DCLGEN declared as below and the extension is .COPYDCL managed in a separate location folder called COPYDCL, how can we detect these types of declarations from VS code, 

EXEC SQL

      DFGTRSG

END-SQL

But the SQLCA is in COPY folder, how can we differentiate the calls ?


Gael Wilson
Forum|alt.badge.img+1
  • Rocketeer
  • December 10, 2025

Sanoop,

You will need to add the SQL directives you require to the Default Directives, and you will also need to add COPYPATH to include the folders containing the copybooks.

Gael


Sanoop
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • December 10, 2025

Hello Gael,

 

I did try that option like this below

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

 "copypath(\"G:\\MYLIB\\D000\\COPY\",\"G:\\MYLIB\\D000\\COPYDCL\")",

but it made all the copybooks from D000\\COPY to be marked as not declared and show them as Unknown copybook


Gael Wilson
Forum|alt.badge.img+1
  • Rocketeer
  • December 10, 2025

Try removing the quotes around the paths. The paths do not contain spaces so the quotes are not required and in older versions of the Enterprise Developer product there was a problem with quoting individual paths in COPYPATH. You have not mentioned which version of Enterprise Developer you are using so I assume that could be the problem.


Sanoop
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • December 10, 2025

We have MFED 10  for the regular Development activities , I tried your suggestion but its not taking without quotes. Its not able to take multiple COPYPATHS.

 

Try removing the quotes around the paths. The paths do not contain spaces so the quotes are not required and in older versions of the Enterprise Developer product there was a problem with quoting individual paths in COPYPATH. You have not mentioned which version of Enterprise Developer you are using so I assume that could be the problem.

Thanks 

Sanoop


Gael Wilson
Forum|alt.badge.img+1
  • Rocketeer
  • December 10, 2025

From the Enterprise Developer product documentation on the COPYPATH directive:

list-of-directories The directories to search. Use semicolons (Windows), or colons (UNIX) to separate the directories. Use quotes to surround the path if it contains spaces.

 

 Your example uses a comma.


Sanoop
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • December 10, 2025

But when i give 

   "copypath(\"G:\\MYLIB\\D000\\COPY\";\"G:\\MYLIB\\D000\\COPYDCL\")", the program is unable to detect copybooks from both directory. If i give only one path, its working well to detect the copybooks from correct directory

I tried this option but only the COPYBOOKS from COPY folder is detected

        "copypath(\"G:\\MYLIB\\D000\\COPYDCL\")",

        "copypath(\"G:\\MYLIB\\D000\\COPY\")",

When i try I tried below option but only the COPYBOOKS from COPYDCL folder is detected

        "copypath(\"G:\\MYLIB\\D000\\COPY\")",

        "copypath(\"G:\\MYLIB\\D000\\COPYDCL\")",

Thanks

Sanoop


Gael Wilson
Forum|alt.badge.img+1
  • Rocketeer
  • Answer
  • December 10, 2025

Why are you still including quotes around the paths when I advised you not to?

If you specify ‘copypath’ twice the second one replaces the first one, it does not add the two values.


Sanoop
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • December 10, 2025

Sorry for that :( , now it works very well, thank you very much 

Why are you still including quotes around the paths when I advised you not to?

If you specify ‘copypath’ twice the second one replaces the first one, it does not add the two values.