Skip to main content

164 Run-Time subprogram not found

  • February 15, 2013
  • 0 replies
  • 0 views

This article explains why the 164 Run-Time subprogram not found error occurred.

Problem:

Why are we encountering the following runtime error?

Load error : file 'cobmffh64.so.2'

error code: 164, pc=0, call=1, seg=0

164 Run-Time subprogram not found

Resolution:

This error occurred because the UNIX/Linux command sudo was used to submit the programs. sudo (super user do) is a program that allows users to run programs with the security privileges of another user (normally the superuser). Each command is logged. It also initializes the environment, leaving TERM unchanged, setting HOME, SHELL, USER, LOGNAME, and PATH, and unsetting all other environment variables.

The LD_LIBRARY_PATH must be set in order for the Run-Time system to be able to find the subprogram file cobmffh64.so.2. The COBOL programs are called from a job submission system using wrapper scripts. The error is resolved by exporting LD_LIBRARY_PATH=$COBDIR/lib in the script.

Old KB# 14085