I am working with GNUCobol cobc version 3.2.0
It seems that COPYBOOKS do not work during the compile step? The source code is going through the esqlOC precompiler first. I have these to lines
COPY RCDC00
COPY screenio.cpy
in my source code and neither copybook is found
I have both COBCPY and COB_COPY_DIR environment variables set in my _make.bat file
SET drv=C:
SET apphome=%drv%EOS
SET "COB_COPY_DIR=%apphome%cobcpy"
SET "COBCPY=%apphome%cobcpy"
I’ve tried with and without double quotes. I’ve even tried putting my copybook names in the environment variable like this
SET “COB_COPY_DIR=%apphome%cobcpyRCDC00.cpy”
SET “COBCPY=%apphome%cobcpyRCDC00.cpy”
I tried putting the full path inside my cobol program at column 8 as
COPY C:EOScobcpyRCDC00.cpy
COPY C:EOScobcpyRCDC00.cpy.
COPY "C:EOScobcpyRCDC00.cpy"
I am familiar with Microfocus and so, I might be blinded to GNUCobol syntax?
David Wulkan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3