On Wed, Sep 13, 2023 at 10:10:42AM -0400, Joseph Reichman wrote:
> I have a number of program that I would like to stay resident in the
> job pack are of my tso session
> 
> So I run a command from systsin in my tso session  that command all it
> does is loads A few load modules and wto s the address Will they remain
> in core until I log off

No.  see the load macro:

https://www.ibm.com/docs/en/zos/2.5.0?topic=storage-load-description

  The responsibility count for the load module is increased by one.

  The load module remains in virtual storage until the responsibility
  count is reduced to 0 through task terminations. The module also remains
  until the effects of all outstanding LOAD requests for the module are
  canceled by using the DELETE macro. There are no other requirements
  for the module.

So the module goes away when it's not being used and the task doing the
LOAD terminated implies DELETEs for all the modules it loaded.

If the use count for a module goes to zero the module goes away.

> I mean I'm assuming the would run under job step TCB IKJEFT01 

No, the TSO TMP uses attach to start commands so when the command ends
the task attached to run the command terminates (and all it's loaded
modules get implicitly deleted).
 
> And therefore stay in the job pack are till I log off 
> Am I correct ?

No.

I'd suggest learning how to read dumps and use SYSUDUMP or SYSMDUMP
and debug it in batch.  This avoids all the TSO APF mess...

You might want your own "driver" program which preloads modules
as you need before attaching your program your testing...

Possibly how well this works depends on how fast your submit/output
cycle time is. 

I've written subsystem code and did not use the TSO TEST APF functions
during development but this was something like MVS SP1.  Then again at
that point I'd already been reading (others) dumps for over 10 years.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to