Problem:
Can you specify an EXEC SQL INCLUDE statement using an environment variable, for example
EXEC SQL INCLUDE $MYENV\\MYCOPY END-EXEC
where MYENV points to the directory where the MYCOPY copybook is located.
Resolution:
You can do this by additionally using the CP preprocessor. Add the P(cp) compiler directive to enable use of this preprocessor.
Old KB# 6930