Is there any equivalent to COPY RESOURCE?


Question:

I got the following compiler warning. Is there any equivalent for the COPY RESOURCE functionality?

   --W: Directive ignored: COPY RESOURCE; file = smSWLOGON.CO, line = 1783, col 

Answer:

Prior to version 2022R1, the isCOBOL compiler ignores the COPY RESOURCE statement to avoid creating a .jar file for each program.
We suggest putting the resouce files (.bmp for example) in the same folder as the .class files.
You can create a myapplication.jar file that contains all .class and resource files.

Version 2022R1 and later supportes the COPY RESOURCE syntax, and will include the bitmaps and fonts in your class, so there is no need to provide them separately.



Article ID: 63
Created: September 2, 2009
Last Updated: December 13, 2022
Author: Support KB Author

Online URL: https://support.veryant.com/support/phpkb/article.php?id=63