[Migrated content. Thread originally posted on 21 March 2012]
From the documentation I didn't find a hint to preload cobol objects in a procedural cobol program and calling the entry. Similar like java cobload.I could call the program itself, which is then loaded and immediate returned by goback and call the entry afterwards.
program-id. subprog.
procedure division.
goback.
entry "entry1" using input.
---
program-id. mainprog.
call "subprog"
call "entry1" using
As a background. Using Java CobolBean with a static block with cobload to load a Cobol program. The business methods call entry points. The entries themselves call Cobol subprograms, preferable entries.
An option is to cobload the subprograms in Cobol but i like to have a dependency separation.
What are my options, how can I preload a subprogram from Cobol ?
Simon
Bookshelf > COBOL Language &> Procedure Division &> Statements > ENTRY Statement
Note that program files containing executable COBOL code typically have names that are essentially the same as the program-name. When a CALL is made and the program-name or entry-name is not already loaded into memory, program files are located by filename but can appear to be located by program-name. In such circumstances, a CALL that references a program-name may succeed but a CALL that references an entry-name may fail.