Skip to main content

Problem:

Some application return Unix return-code that is not validated to zero. In these applications, the return-code is not used by the Cobol module .

With others applications , the return-code is used , but the return-code of the application is not validated to a right value

Resolution:

Some third party software use a return-code between its subprogram. In this case , the application returns a value that is not null.

The compiler directive -C DEFAULTCALLs=4  can be used if all CALL verbs must not return the return-code.

If some CALL verb must return a value of return-code , it is necessary to use CALL-CONVENTION clause. An example is attached.

If it is not use with CALL-CONVENTION, a CALL verb is used with the value of DEFAULTCALLS that is by default zero.

Attachments:

prog.cbl

Old KB# 2334