Skip to main content

Problem:

When modifying a Cobol program in the IDE and adding a copyfile statement (when there was no CPY file linked to the program before) - this will compile cleanly.

Now when you do a publish to unix --> it will fail because the newly inserted copy will not be published to unix, hence the compilation fails.

Publish and/or Publish All does not work.

Resolution:

Reason is you always need to do an update dependencies when publishing to UNIX.

Overview - Updating Dependencies

Dependencies exist when one file uses another file as part of its logic flow - one

file is said to be dependent on the other. For example, a COBOL source file that

contains a COPY statement is dependent on the copyfile specified in the COPY statement.

That is, if the copyfile changes, the COBOL source file that uses it needs to be

recompiled.

Net Express manages most dependencies automatically; that is, files are rebuilt automatically

if their dependent files change. However, if you add new copyfiles to a source file,

or change the inheritance hierarchy in an object-oriented program, you should recreate

the project's dependency chain by clicking Update All Dependencies on the Project

menu. Alternatively, you can select only the files whose dependencies have changed

and click Update Dependencies on the Project menu. Once you have told Net Express

about new dependencies in this way, it will automatically take account of them when

rebuilding your project.

Old KB# 1472