Highlighted
Super Contributor.
Super Contributor.
823 views

Examining File Status in managed COBOL

Jump to solution
While stepping through execution (debugging) COBOL code in Net Express 5.1, you could hover over an internal file name wherever it appeared in the code and get the File Status for the last IO operation on that file. Short of explicitly declaring a File Status item in a file's SELECT clause and scrolling up the program source to where the File Status item is defined in Working Storage and using Tooltip to read the value, is there anything like the Net Express feature in Visual COBOL?
0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Examining File Status in managed COBOL

Jump to solution

Please open up a support incident for this, Don so we can take a look. I cannot reproduce the problem so may be something specific to your project or code.

View solution in original post

0 Likes
3 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Examining File Status in managed COBOL

Jump to solution

This feature is available by default in Visual COBOL. I just tested this here with VC for VS2015 2.3 Update 2 and whenever I perform an I-o operation on the file and hover over its name it will display the operation and the file status returned. If I have the Autos Window open this information will also be displayed there.

I have no file status data item defined for the file.

What VC version are you using?

0 Likes
Highlighted
Super Contributor.
Super Contributor.

RE: Examining File Status in managed COBOL

Jump to solution

VC for VS2013 2.3 Update 2.

I just happen to be validating a managed COBOL class that is a port of a native COBOL .dll so I can run one, switch solutions, and then run the other with breakpoints set at the same line of code in both programs.

In the native COBOL the hover over the file name displays an outlined white box with an icon next to the filename on the right, a dividing line, and the status text on the right.  Perfect.

In the managed COBOL the hover over the file name displays an un-outlined gray box with the text "LOG-FILE FD" in it.

Its like the functionality is partially blocked.

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Examining File Status in managed COBOL

Jump to solution

Please open up a support incident for this, Don so we can take a look. I cannot reproduce the problem so may be something specific to your project or code.

View solution in original post

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.