This document explains how to automate the process of off-loading the TPX LOG data, using the MVS SPIN command.
Release: 5.4 Component: TPX for Z/OS
If you are using an Automation product like OPSMVS or SOLVE:Operations you can issue the MVS command 'F tpxstc,SPIN' every midnight or at a predetermined time using the automation product. This allows TPX to close the current SYSOUT file and allocate a new one. Now you can offload the closed SYSOUT file from SPOOL into a dataset.
If you don't have an Automation product on your site, you can schedule the TPX command 'F <tpx-stc-name>,SPIN' using the JES-command $TA. Example. $TA,T=23.59,I=86400,'$VS,''F <tpx-stc-name>,SPIN''' where ; $TA is the command to create the automated command, T=mm.ss is the time in hh.mm at which the command should be executed, I=sssss is the Interval after which the command should be re-executed (here after one day or 86400 seconds) and $VS is used to allow the console command F <tpx-stc-name>,SPIN to be executed out of JES2. Note the double apostrophes around that MODIFY-command and the pair of apostrophes around the complete command $VS ...
For additional details on $TA command please refer to IBM manual SA22-7526-11 "JES2 Commands"