The Mains (and the PL/1 sub program test objects) are - or can be - DLLs, compiled with the RENT compile option, so they have to be called using CEEFETCH, because the proper WSA initialization etc has to be done.
This is the part of a co-worker, so I'm not totally sure about this, but I believe that he does it the same way at the moment for the Mains and non-Mains, and that is CEEFETCH. We are thinking about other solutions, too, for example: get rid of the first enclave and do the control work totally in ASSEMBLER, without LE. Then we could build seperate enclaves for every testcase (in the case of Mains, the Main would build the enclave, and in the case of Non-Mains, the driver would do it). I forgot to mention how the TRAP2 interrupt is done. The location of the entry point is calculated by analyzing the compiler and linkage editor listing at compile time, and then, before transferring control to the test object, a TRAP2 machine instruction is placed at the location of the entry point. The TRAP2 interruption is then captured by the driver exit, which replaces the (undefined) reg 1 parm list by the right one, which comes from the testcase database, and resumes execution. This way, we manage to construct the reg 1 parameter list and present the parameters to the test object at a time when all the initialization work has already been done. When returning from the test object, the output parameters are extracted from the parameter area and written back to the testcase database (to verify the changes done by the test object and to enable regression testing). Kind regards Bernd Am Mittwoch, 28. März 2012 03:02 schrieben Sie: > In <[email protected]>, on 03/27/2012 > > at 06:16 PM, Bernd Oppolzer <[email protected]> said: > >all works well, if the test object is a PL/1 subroutine and not a > >main program. > > How do you invoke the MAIN? CALL? LINK? ATTACH? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

