Highlighted
Absent Member.
Absent Member.
4066 views

error 13 File Not Found - migrating from MF COBOL to Visual Cobol(Native)

Jump to solution

Hi,

i remember this error from a year ago, during test of MF cobol for Eclipse.

I tried to find solution today, no luck with google, our forum or KB. So there it is, Use case;

****cobol code:

FILE-CONTROL.
SELECT DDEING
ASSIGN TO AEING.
*was UT-S-DDEING
SELECT DDBERKA
ASSIGN TO ABERKA.
*was UT-S-DDBERKA
*****
*****
DATA DIVISION.
FILE SECTION.
*
FD DDEING
RECORDING MODE F
LABEL RECORD STANDARD
BLOCK 0 RECORDS.
01 DDEING-REC.
05 DDEING-ELEM PIC X(2).
05 DDEING-REST PIC X(498).
FD DDBERKA
RECORDING MODE F
BLOCK 0 RECORDS.

...

OPEN INPUT DDEING                   <-- error 13 file not found
OPEN OUTPUT DDBERKA

I have following additional directives(error occures also without additional directives) ;

DIALECT(ENTCOBOL) INITCALL"ORASQL8" ASSIGN "EXTERNAL" copyext"cpy" hostarithmetic PERFORM-TYPE"OSVS" signfixup IDXFORMAT(8) nolist

and following env. var.; AEING ->  "G:\Entwicklung\mfes\TPO\Data\LEM\TS64004.QUACON.DDZMV.DAT"

File resides in (mounted) shared disk.

Thanks,

Alex

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: error 13 File Not Found - migrating from MF COBOL to Visual Cobol(Native)

Jump to solution

You should be able to set them in the Eclipse IDE but you should set them on the run configuration itself and not in the project properies as when you set them in the project properties they may not be inherited by the run environment directly.

Instead of project properties, richt-click on project name and select Run As or Debug As and then Run Configuartions or Debug Configurations and set them as shown below:

View solution in original post

0 Likes
5 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: error 13 File Not Found - migrating from MF COBOL to Visual Cobol(Native)

Jump to solution

This would normally indicate that there is a problem with the file handler picking up the environment variable value that is associated with the filename or that perhaps the shared location is not accessible.

Where are you setting the AEING environment variable, at the system level or within Eclipse?

For a test try the following:

Change select statement to assign directly to the filename.

SELECT DDEING

   ASSIGN TO  "G:\Entwicklung\mfes\TPO\Data\LEM\TS64004.QUACON.DDZMV.DAT"

If that works then you know that the location and name is accessible and that most likely the environment variable isn't being picked up.

If the direct assignment fails then I would try moving the file locally to see if that works.

If it does then most likely it is an issue accessing the network share.

Thanks.

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: error 13 File Not Found - migrating from MF COBOL to Visual Cobol(Native)

Jump to solution

Chris,

full path was working year ago, it still works.

It is(was) a mater of env.var. which I set in Project properties[Eclipse/MFCobol/Runconfig/env.var.]

I've tried to workaround, so far no luck.

Alex

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: error 13 File Not Found - migrating from MF COBOL to Visual Cobol(Native)

Jump to solution

Chris,

clarification: if env.var. set at system level, then its working, as in :

documentation.microfocus.com/.../index.jsp

It will be nice to set ddnames at project level, since otherwise we need to change  most of ddnames in .cbl and .jcl in order to have same comfort as with NetExpress.

Thanks,

Alex

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: error 13 File Not Found - migrating from MF COBOL to Visual Cobol(Native)

Jump to solution

You should be able to set them in the Eclipse IDE but you should set them on the run configuration itself and not in the project properies as when you set them in the project properties they may not be inherited by the run environment directly.

Instead of project properties, richt-click on project name and select Run As or Debug As and then Run Configuartions or Debug Configurations and set them as shown below:

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: error 13 File Not Found - migrating from MF COBOL to Visual Cobol(Native)

Jump to solution

Chris,

Thank you.

alex

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.