lovelacer Absent Member.
Absent Member.
777 views

Visual Cobol Project Starts in Subprogram when debugged

Jump to solution

Visual Cobol Project Starts in Subprogram when debugged, not Main Program; Executes the subprogram in the project, then never executes the main program.  There are only two programs in the project.  Main program worked fine.  Then added Subprogram. I build the project after both .cbl program files are saved.  I have to delete the subprogram to get the main to work.  When I add the subprogram again, same problem.  I have gotten a Main Program - Sub Program to work in another project- passes data back & forth, executes, etc...  However, I cannot seem to get it to work in this project.  Tried to create a new project with a New Main & Subprogram, same problem.

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Visual Cobol Project Starts in Subprogram when debugged

Jump to solution

It is possible that you do not have an entry point for your project set.
In the solution explorer, right click the project containing your two programs and select Properties. The application tab on the properties page will have a field for Entry point. Type the name of the program you want the application to call first.

0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Visual Cobol Project Starts in Subprogram when debugged

Jump to solution

It is possible that you do not have an entry point for your project set.
In the solution explorer, right click the project containing your two programs and select Properties. The application tab on the properties page will have a field for Entry point. Type the name of the program you want the application to call first.

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.