If the dataset is allocated with the equivalent of FREE=CLOSE (I forget the
TSO ALLOC syntax for that) and if the program being tested closes the file,
all should be good.

If both TSO and batch job can allocate it SHR, that should work too.

If the dataset is allocated  by the same CLIST that runs TEST, you may have
to make changes. From memory a CLIST can interact with TEST after the TEST
command, so could you start TEST (or the CLIST) from Rexx, then have Rexx
issue a FREE after TEST (or THE CLIST) ends and returns to Rexx.

Roops

On Thu, 17 Jul 2025, 16:09 Joseph Reichman, <
[email protected]> wrote:

> Hi
>
> I have a clist which I allocate an output file used to debug a program
> under TSO TEST
>
> When that clist ends I would like to use the file in a batch job
>
> However I get a contention error
>
> When I free it or log off tso the file gets deleted
>
> Don’t understand this
>
> Can this be installation specfic
>
> Thanks
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

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

Reply via email to