Created On:  22 September 2010

Problem:

In the COBOL program, the function call of “hsmRequest” in the C dll was failing with the following error:

"173 called program file not found in drive/directory HSMREQUE"

Resolution:

This issue is resolved by compiling the COBOL program with these directives: NOMAPNAME and NOFOLDCALLNAME.

The reason for the ‘ file not found’ error is because the function name was being truncated to 8 characters and folded to uppercase - HSMREQUE - and so was not being located. Specifying NOFOLDCALLNAME prevents the folding of the identifier and/or literal associated with the CALL or ENTRY statement to uppercase. NOMAPNAME prevents the Compiler from altering program-names and entry-points in order to make them compatible with OS/VS COBOL, DOS/VS COBOL, VS COBOL II and COBOL/370 which in this case meant truncating the function name to the first eight characters.
Incident #2468400