Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Cannot find entry point with NetCobol for .NET

Posted on 2004-10-14
5
Medium Priority
?
518 Views
Last Modified: 2008-01-09
I recently switched from using MicroFocus Personal Cobol to NetCobol for .NET. With .NET, I get an error code that states " JMN10026I-U  Cannot find entry point 'Lab2.2.Program1'. I am new to .NET, but this program compiles in Personal Cobol. Any ideas? I have my .cbl file and my resource file in the same folder, so I don't know why it can't find the entry point...

Thanks.
0
Comment
Question by:Pam_Baugh
  • 3
  • 2
5 Comments
 
LVL 1

Expert Comment

by:jaguarul
ID: 12311973
I have no idea about COBOL, but how do you specify its entry point? its "main" function? it doesn't sound like a COBOL error, but rather an error of the .NET runtime which complains it cannot find your executable entry point.
0
 

Author Comment

by:Pam_Baugh
ID: 12312058
yes, exactly, but I don't know how .NET finds the entry point. The beginning of the program is in the Main function. Here's a little of the code. This is a classroom assignment....


       PROCEDURE DIVISION.
       Main.
           OPEN INPUT CookbookFile
           PERFORM PrintHeadings

           READ CookbookFile
               AT END move "Y" to EOFSwitch
               NOT AT END MOVE SPACES to CookbookDetailLine
                   MOVE CookbookGroupIn to CookbookGroupOut
                   MOVE CookbookGroupIn to DLCookbookGroup
           END-READ



         
0
 
LVL 1

Accepted Solution

by:
jaguarul earned 2000 total points
ID: 12312386
I think you should try to find something like "Startup Object", somewhere in the Solution (Project) Properties. It should provide a list of possible entry points.
0
 

Author Comment

by:Pam_Baugh
ID: 12312426
BINGO! Thanks:-)
0
 
LVL 1

Expert Comment

by:jaguarul
ID: 12312564
thanks aswell. good luck ;)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Progress

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question