Highlighted
Absent Member.
Absent Member.
1918 views

migration from NetExpress to Visual COBOL - COBCH0865S Failed to find system program 'FHREDIR'

Jump to solution

Hi,


I'm migrating from Net Express to Visual Cobol for Eclipse, for now I'm only testing things to understand how this Visual COBOL for Eclipse works.

I created a JVM COBOL Project and I copy and paste one of our Net Express COBOL programs, when I set the compiler directive CALLFH(FHREDIR) but I get the error message "COBCH0865S Failed to find system program 'FHREDIR'", after a few searches on this forum, I found that File Handler is not supported yet for Manage Cobol programs, only for Native, and I need to ask to you, to [mention:d603b3bbafb34624b638067562f96d5f:e9ed411860ed4f2ba0265705b8793d05] and to [mention:b352dec1607a48b4a1b69b848608db53:e9ed411860ed4f2ba0265705b8793d05], if this is still not supported.

I have a lot of questions, this is one of many.

Thanks in advance,

Andrés Mauricio Heredia G.
Software Engineer
EMA HOLDINGS S.A.S
Cali - Colombia

0 Likes
2 Solutions

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: migration from NetExpress to Visual COBOL - COBCH0865S Failed to find system program 'FHREDIR'

Jump to solution

The external file handler is supported in JVM but the CALLFH"FHREDIR" directive tells it to use Fileshare instead of the local file handler. Fileshare does not appear to be supported yet in a JVM project.

If this is something that you actually require then I would recommend that you open up a support incident with customer care for this.

If you are simply evaluating the product then I would recommend that you remove this directive from your project settings and then the default local file handler will be used.

Thanks.

View solution in original post

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: migration from NetExpress to Visual COBOL - COBCH0865S Failed to find system program 'FHREDIR'

Jump to solution

So Fileshare can be used in a JVM project but you must use a different method other than the CALLFH"FHREDIR" directive.

If you would like I-O to be redirected to a Fileshare server than you can:

1. embed the Fileshare server name directly in the file name preceded by $$:

   select test-file assign to "$$server1\testfile.dat"

2. Set the FHREDIR=ON option in the extfh.cfg file.

   [XFH-DEFAULT]

   FHREDIR=ON

I tested this here with a JVM project using Visual COBOL Eclipse 2.3 and it worked fine.

Thanks.

View solution in original post

2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: migration from NetExpress to Visual COBOL - COBCH0865S Failed to find system program 'FHREDIR'

Jump to solution

The external file handler is supported in JVM but the CALLFH"FHREDIR" directive tells it to use Fileshare instead of the local file handler. Fileshare does not appear to be supported yet in a JVM project.

If this is something that you actually require then I would recommend that you open up a support incident with customer care for this.

If you are simply evaluating the product then I would recommend that you remove this directive from your project settings and then the default local file handler will be used.

Thanks.

View solution in original post

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: migration from NetExpress to Visual COBOL - COBCH0865S Failed to find system program 'FHREDIR'

Jump to solution

So Fileshare can be used in a JVM project but you must use a different method other than the CALLFH"FHREDIR" directive.

If you would like I-O to be redirected to a Fileshare server than you can:

1. embed the Fileshare server name directly in the file name preceded by $$:

   select test-file assign to "$$server1\testfile.dat"

2. Set the FHREDIR=ON option in the extfh.cfg file.

   [XFH-DEFAULT]

   FHREDIR=ON

I tested this here with a JVM project using Visual COBOL Eclipse 2.3 and it worked fine.

Thanks.

View solution in original post

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.