Hi,
I'm currently working on an exisiting code base of a customer.
They have placed their copybooks in a specific directory structure and rather than setting the Copybook Path they use a syntax like
copy 'path/to/copybook'.
The copybooks do not have an extension like '.cpy'.
With update 3.0 Visual Studio (we're using version 2015) has gained the ability to display the contents of copybooks.
This works fine when a copybook is referenced as copy copybook. ,the relevant paths are added to the copybook paths and the file has an extension that has been configured but does not work with the syntax shown above.
How can I get the contents of the copybook to be displayed for such lines as well?
I've tried the second suggestion of To specify that a file extension is a copybook and adding one of those copybooks as "existing item" but even if I remove the path from the copy statement the copybook is not found.
Thanks in advance
#VisualCOBOL#VisualStudioI think the problem is due to the extensionless file instead of the full path being specified.
In Visual Studio select Tools-->Options and then scroll to Text Editor and File Extensions. There is an option at bottom to Map extensionless files to... Set this to Micro Focus COBOL.
Hi,
I'm currently working on an exisiting code base of a customer.
They have placed their copybooks in a specific directory structure and rather than setting the Copybook Path they use a syntax like
copy 'path/to/copybook'.
The copybooks do not have an extension like '.cpy'.
With update 3.0 Visual Studio (we're using version 2015) has gained the ability to display the contents of copybooks.
This works fine when a copybook is referenced as copy copybook. ,the relevant paths are added to the copybook paths and the file has an extension that has been configured but does not work with the syntax shown above.
How can I get the contents of the copybook to be displayed for such lines as well?
I've tried the second suggestion of To specify that a file extension is a copybook and adding one of those copybooks as "existing item" but even if I remove the path from the copy statement the copybook is not found.
Thanks in advance
#VisualCOBOL#VisualStudioThanks, this already helps.
It doesn't work entirely as expected though.
Example code:
copy "path/to/select/file1"
copy "path/to/fd/file1"
copy "path/to/status/file1"
Each of these files contains respectively the file-control, the fd and the status entries needed for ISAM file "file1".
With the mapping of extensionless file set to Micro Focus Cobol other copybooks (with a unique name) show the expected content but the sample above shows the content of the "select" file for each of the 3 copy statements listed.
So it seems that the path specified in the copy statement is now being ignored.
Hi,
I'm currently working on an exisiting code base of a customer.
They have placed their copybooks in a specific directory structure and rather than setting the Copybook Path they use a syntax like
copy 'path/to/copybook'.
The copybooks do not have an extension like '.cpy'.
With update 3.0 Visual Studio (we're using version 2015) has gained the ability to display the contents of copybooks.
This works fine when a copybook is referenced as copy copybook. ,the relevant paths are added to the copybook paths and the file has an extension that has been configured but does not work with the syntax shown above.
How can I get the contents of the copybook to be displayed for such lines as well?
I've tried the second suggestion of To specify that a file extension is a copybook and adding one of those copybooks as "existing item" but even if I remove the path from the copy statement the copybook is not found.
Thanks in advance
#VisualCOBOL#VisualStudioThanks, this already helps.
It doesn't work entirely as expected though.
Example code:
copy "path/to/select/file1"
copy "path/to/fd/file1"
copy "path/to/status/file1"
Each of these files contains respectively the file-control, the fd and the status entries needed for ISAM file "file1".
With the mapping of extensionless file set to Micro Focus Cobol other copybooks (with a unique name) show the expected content but the sample above shows the content of the "select" file for each of the 3 copy statements listed.
So it seems that the path specified in the copy statement is now being ignored.
Hi,
I'm currently working on an exisiting code base of a customer.
They have placed their copybooks in a specific directory structure and rather than setting the Copybook Path they use a syntax like
copy 'path/to/copybook'.
The copybooks do not have an extension like '.cpy'.
With update 3.0 Visual Studio (we're using version 2015) has gained the ability to display the contents of copybooks.
This works fine when a copybook is referenced as copy copybook. ,the relevant paths are added to the copybook paths and the file has an extension that has been configured but does not work with the syntax shown above.
How can I get the contents of the copybook to be displayed for such lines as well?
I've tried the second suggestion of To specify that a file extension is a copybook and adding one of those copybooks as "existing item" but even if I remove the path from the copy statement the copybook is not found.
Thanks in advance
#VisualCOBOL#VisualStudioThanks, this already helps.
It doesn't work entirely as expected though.
Example code:
copy "path/to/select/file1"
copy "path/to/fd/file1"
copy "path/to/status/file1"
Each of these files contains respectively the file-control, the fd and the status entries needed for ISAM file "file1".
With the mapping of extensionless file set to Micro Focus Cobol other copybooks (with a unique name) show the expected content but the sample above shows the content of the "select" file for each of the 3 copy statements listed.
So it seems that the path specified in the copy statement is now being ignored.
Hi,
I'm currently working on an exisiting code base of a customer.
They have placed their copybooks in a specific directory structure and rather than setting the Copybook Path they use a syntax like
copy 'path/to/copybook'.
The copybooks do not have an extension like '.cpy'.
With update 3.0 Visual Studio (we're using version 2015) has gained the ability to display the contents of copybooks.
This works fine when a copybook is referenced as copy copybook. ,the relevant paths are added to the copybook paths and the file has an extension that has been configured but does not work with the syntax shown above.
How can I get the contents of the copybook to be displayed for such lines as well?
I've tried the second suggestion of To specify that a file extension is a copybook and adding one of those copybooks as "existing item" but even if I remove the path from the copy statement the copybook is not found.
Thanks in advance
#VisualCOBOL#VisualStudioI just tested this here using copybook files with the same name, no extension and different folders for each and it works as it should. Do you perhaps have the copybook path set in your project properties to point to the first location only? Or do you have COBCPY environment variable set in your computers environment?
Hi,
I'm currently working on an exisiting code base of a customer.
They have placed their copybooks in a specific directory structure and rather than setting the Copybook Path they use a syntax like
copy 'path/to/copybook'.
The copybooks do not have an extension like '.cpy'.
With update 3.0 Visual Studio (we're using version 2015) has gained the ability to display the contents of copybooks.
This works fine when a copybook is referenced as copy copybook. ,the relevant paths are added to the copybook paths and the file has an extension that has been configured but does not work with the syntax shown above.
How can I get the contents of the copybook to be displayed for such lines as well?
I've tried the second suggestion of To specify that a file extension is a copybook and adding one of those copybooks as "existing item" but even if I remove the path from the copy statement the copybook is not found.
Thanks in advance
#VisualCOBOL#VisualStudioThe different directories are all listed in the Copybooks list and no COBCPY is set.
I notice more strange behaviour: by moving the different directories up and down in the copybook list the behaviour changes after the Intellisense update has run
The initial list in the copybooks was select, fd, status; which displays the contents of the select file for all copy statements.
Nothing changes when I change the order to select, status, fd.
If I change the order to fd, select, status the contents of the fd file is shown for all copy statements.
If I change the order to status, select, fd, the copy select shows the contents of the status file, the copy fd shows the contents of the select file and the copy status shows the contents of the status file.
I haven't tried all possible combinations but this behaviour clearly is wrong.
Hi,
I'm currently working on an exisiting code base of a customer.
They have placed their copybooks in a specific directory structure and rather than setting the Copybook Path they use a syntax like
copy 'path/to/copybook'.
The copybooks do not have an extension like '.cpy'.
With update 3.0 Visual Studio (we're using version 2015) has gained the ability to display the contents of copybooks.
This works fine when a copybook is referenced as copy copybook. ,the relevant paths are added to the copybook paths and the file has an extension that has been configured but does not work with the syntax shown above.
How can I get the contents of the copybook to be displayed for such lines as well?
I've tried the second suggestion of To specify that a file extension is a copybook and adding one of those copybooks as "existing item" but even if I remove the path from the copy statement the copybook is not found.
Thanks in advance
#VisualCOBOL#VisualStudioThe different directories are all listed in the Copybooks list and no COBCPY is set.
I notice more strange behaviour: by moving the different directories up and down in the copybook list the behaviour changes after the Intellisense update has run
The initial list in the copybooks was select, fd, status; which displays the contents of the select file for all copy statements.
Nothing changes when I change the order to select, status, fd.
If I change the order to fd, select, status the contents of the fd file is shown for all copy statements.
If I change the order to status, select, fd, the copy select shows the contents of the status file, the copy fd shows the contents of the select file and the copy status shows the contents of the status file.
I haven't tried all possible combinations but this behaviour clearly is wrong.
Hi,
I'm currently working on an exisiting code base of a customer.
They have placed their copybooks in a specific directory structure and rather than setting the Copybook Path they use a syntax like
copy 'path/to/copybook'.
The copybooks do not have an extension like '.cpy'.
With update 3.0 Visual Studio (we're using version 2015) has gained the ability to display the contents of copybooks.
This works fine when a copybook is referenced as copy copybook. ,the relevant paths are added to the copybook paths and the file has an extension that has been configured but does not work with the syntax shown above.
How can I get the contents of the copybook to be displayed for such lines as well?
I've tried the second suggestion of To specify that a file extension is a copybook and adding one of those copybooks as "existing item" but even if I remove the path from the copy statement the copybook is not found.
Thanks in advance
#VisualCOBOL#VisualStudioIf you are using full path names to locate the copybook in the copy statement then you shouldn't really be setting the location under copybook paths as well, however I just tested this here and it still worked fine for me.
I would recommend that you open up a support incident so that we can get some diagnostics and troubleshoot the issue you are having. Then if necessary we can create a bug report and get it fixed for you.
Thanks