Highlighted
Absent Member.
Absent Member.
2767 views

COBCH0865 : Failed to find system program "acufh" (Visual Cobol r3 trial)

Jump to solution

[Migrated content. Thread originally posted on 20 January 2011]

Hi.

I am trying to create a VISION data file (this is a new supported feature in VCr3).
However, when I include the necessary support : $SET CALLFH(acufh)
I get an error : COBCH0865 : Failed to find system program 'acufh'.

I've tried everything I can think of, adding paths, copying to project directory, adding to the VS project, but the error persists.

Does anybody have an idea if/how this can be solved ?
This is the 1 month TRIAL version.

Thanks,
- Peter -
0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: COBCH0865 : Failed to find system program "acufh" (Visual Cobol r3 trial)

Jump to solution
I just tried this here and it worked fine.

The Vision file support is provided as a separate product in the folder C:\Program Files (x86)\Micro Focus\Vision 2.0, by default (on 64-bit).

Your PATH should include C:\Program Files (x86)\Micro Focus\Vision 2.0\bin in order for it to find acufh.dll at runtime.

You also need to add the library C:\Program Files (x86)\Micro Focus\Vision 2.0\lib\acufh.lib under Link Settings in the project Property Pages under the COBOL tab.

Vision file support only works in a native COBOL project.
It cannot be used in a managed code project.

View solution in original post

0 Likes
4 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: COBCH0865 : Failed to find system program "acufh" (Visual Cobol r3 trial)

Jump to solution
I just tried this here and it worked fine.

The Vision file support is provided as a separate product in the folder C:\Program Files (x86)\Micro Focus\Vision 2.0, by default (on 64-bit).

Your PATH should include C:\Program Files (x86)\Micro Focus\Vision 2.0\bin in order for it to find acufh.dll at runtime.

You also need to add the library C:\Program Files (x86)\Micro Focus\Vision 2.0\lib\acufh.lib under Link Settings in the project Property Pages under the COBOL tab.

Vision file support only works in a native COBOL project.
It cannot be used in a managed code project.

View solution in original post

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: COBCH0865 : Failed to find system program "acufh" (Visual Cobol r3 trial)

Jump to solution
Are you getting this error during compile? During runtime? This looks like a compile error to me, but I just want to be sure.

As Chris stated, you need to ensure that your LIB environment variable is pointing to the lib subdirectory of the Vision installation. It may be the case that acufh is case sensitive (in which case, CALLFH(ACUFH) would work, while CALLFH(acufh) would not).

If none of this helps, then more details would be useful about what your environment looks like.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: COBCH0865 : Failed to find system program "acufh" (Visual Cobol r3 trial)

Jump to solution
chrisg/rzack, thanks for your responses.

I have created a "native COBOL application" and this does work indeed.

So the misunderstanding was my assumption that VISION files would be natively supported in managed code using the CALLFH(acufh) switch.

It looks like a switch to VC (for me), requires conversion of all files from Vision to the native Micro Focus format as I don not see any advantage switching from Extend to VC and sticking with "native COBOL application".
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: COBCH0865 : Failed to find system program "acufh" (Visual Cobol r3 trial)

Jump to solution
Hi Peter,

I think you will still get a lot of benefits by moving to Visual COBOL even in native code. You still get all the power of the Visual Studio (or Eclipse) IDE - rich editor, powerful debugger (including the new "memory watch" window which is only available for native code. You will also be ready to start moving components into managed code as and when you're ready.

It's something we haven't promoted very heavily yet, but it is possible to mix managed and unmanaged code pretty easily - that's how the Micro Focus Filehandler is used from managed code for example. So you could have UI code using WPF, which is obviously managed code, with business logic that is still native code.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.