//VTS EXEC PGM=DK1VAGNT
//STEPLIB DD DISP=SHR,DSN=*your-auth-load-library*
//LDSTSR DD DISP=OLD,DSN=*your-LDS*
//SYSOUT DD SYSOUT=*
//TBDUMP DD SYSOUT=*
//TBTSRPT DD SYSOUT=*
//TBOPT DD *
VTSNAME=*your-vts-name*
TSRSIZE=16M
TSRACCESS=RF
LDS=Y
/*
Note:
The DDNAME LDSTSR must have DISP=OLD for both TSRACCESS=RF and TSRACCESS=RW. DISP=SHR should be used for TSRACCESS=RO.
Note:
Every time REFRESH is executed, only the table in VTS-TSR gets updated or refreshed, the VSAM LDS is not.
The only time the LDS gets updated is, when the VTS Agent is brought down normally with the MVS STOP command. This is to ensure that the VTS-TSR and LDS are in SYNC, so that when the VTS-TSR is brought up again it is with the latest data when it is recycled.
Following messages in the VTS agent console indicate a normal termination of the VTS agent job which synchronize the data from VTS-TSR to LDS.
DK100634I STOP command received, V703 VTS XXXXX terminating
DK100417I TSR successfully saved on LDS
If the VTS agent abnormally terminates, the LDS will not be updated.
The LDS must be pre-loaded again from the latest updated library before bringing up the VTS-TSR again.