Skip to main content

Problem:

When using the Animator to step through code a "File below not found" error can sometimes occur when a copybook is encountered, even though the copybook exists and is correctly named.

This is especially prevelent when using the CP preprocessor to expand copybooks.

Example:

COPY MYFILE REPLACING ==:OLD:== ==NEW==.

Resolution:

There are potentially two problems here.  Firstly there is a bug in Server Express which will be fixed in Server Express 4.0 SP4 and Server Express 5.0 WS3.  Applying this fix should resolve most issues.

The second potential problem is related to Unix's case sensitivity.  You must ensure that the case of the copybook is consistent, i.e the whole name plus extension is either uppercase or lowercase, not a mixture.  Using the compiler directives FOLDCOPYNAME and COPEXT can also help:

E.G.  COPYEXT(CPY,cpy), FOLDCOPYNAME(LOWER)

Using the above directives with the example copy line will cause Animator to only look for mfile.cpy rather than mfile.CPY as you might have expected.

Using COPYEXY(CPY,cpy) FOLDCOPYNAME(UPPER) would cause Animator to look for MYFILE.CPY, therefore MYFILE.cpy would not be found.

Old KB# 2053