BillyBoyo wrote:Just found this, and I see it is on IBM-MAIN as well.
If you dynamically CALL a COBOL program, that COBOL program's WORKING-STORAGE is not going anywhere until the termination of the run-unit/enclave.
However, how about making a LOADable table, so that you can get the storage you need by name?
BillyBoyo wrote:I'm assuming your sub-program is itself persistent.
You create your storage as an Assembler "program". Then use the LOAD macro to get it into memory, using its name.
If your sub-program is not persistent, LOAD the table from a program which is, and you will still be able to access it via the name in yours.