Barry Schwarz wrote:
On Fri, 25 Aug 2017 22:41:35 -0400, Thomas David Rivers
<riv...@dignus.com> wrote:
The ATTACH (or ATTACHX) macro is used to create
a subtask - but it requires (basically) a separate
load module...
Is there a mechanism to create a subtask within
the currently loaded load-module?
You can specify the entry address using the EPLOC operand.
Hi Barry!
Thanks for the pointer! But I think EPLOC specifies
the address of the name.. the name is still an 8-byte load
module name...
From the ATTACH macro description:
EP=entry name
EPLOC=entry name addr
DE=list entry addr
Specifies the entry name, the address of the entry name, or the
address of the name field of a 62-byte entry name list. The entry
name is constructed using the BLDL macro. When EPLOC is coded,
entry name addr points to an eight-byte field. When the name is
less than eight characters, left-justify the name and pad with
blanks on the right to make up the eight characters.`
(DE is a BLDL directory list result from looking up a name in a PDS
directory.)
I'm trying to think of how to start a TCB that invokes a function
within my own load module.
One approach would be to have a tiny "helper" load module that accepted
a parameter that was the function's address; ATTACH would attach
that helper load module, which would then indirectly invoke the function.
That's good enough - but now I want to eliminate the "helper" load module.
Perhaps there is no way around it? You just have to have another load
module?
- Thanks -
- Dave Rivers -
--
riv...@dignus.com Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN