|
From: John R. C. <jo...@we...> - 2005-08-06 16:02:33
|
I assume that the COBOL code for creating and calling subprograms is pretty standard. The tricky part for me is the compile options. In OpenCobol for example the main program has to be compiled with a special parameter indicating it is a main program. The subprogram is compiled to a linkable object. Then both are compiled together to come up with an executable. I presume something similar is going one with TC but I can't guess what. 1. Can/should the main program and sub program sources be resident in the same directory? 2. What does the command line for compiling main program foo.cbl look like? 3. What does the command line for compiling subprogram bar.cbl look like? 4. What does the linking command (if any) look like? Thanks as always. The existing manuals don't address this issue AFAIK. -- John Culleton |