Multi-tasking with LE/370
Hi all,
I'm kind of a beginner in writing LE/370 conformant application. I
use LanguageEnvironment v1.5 on OS/390 1.2 (we're soon upgrading to OS/390
2.7
& LE v1.8).
Lately I came upon a problem concerning multitasking with LE/370.
I'll first describe the current situation (without LE/370 active):
There is an address-space, and the name of the main program is
DFSPCC20 (yes, it's an IMS MPR...).
As this program (DFSPCC20) starts, it LINKs to a program named MYINIT.
This program does a simple thing: It attaches a subtask. The subtask's main
module is called MYTASK.
Right after MYINIT attaches MYTASK - it terminates and giving control back
to DFSPCC20, which then just WAITs.
So, now I have (in the address-space), in addition to the main task -
another
task, called MYTASK. Note that ABEND for quitting-without-detaching-tasks is
not
relevant, since that MYTASK's real "father task" is DFSPCC20, which is still
active.
All is written in ASM/370, compiled with High Level Assembler with no LE/370
involved whatsoever.
Everything's fine.
Now: I want to upgrade the program so it'll be LE/370 conformant.
However, when I run the whole business - it ABENDS S0C4 on CEEPLPKA (if I'm
not mistaken
in the module's name).
I think I'm having a deal with saving-area's problems.
How EXACTLY should this be done in LE/370?
What do I have to add?
Anybody ever tried to do such thing?
Any help will be greatly appreciated. If needed, I'll publish the code
itself.
Regards,
--------------------------
Itsik Shabtay