Does TPX VSAM dataset backup require that both the INDEX and the DATA component are backed up?

Document ID : KB000025707
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

Does TPX VSAM dataset backup require that both the INDEX and the DATA component are backed up?

Answer:

Run REPRO with just the DATA component only if there are errors when doing a REPRO with the full VSAM file including the index.

If a DATA only REPRO is done, then a SORT must also be done on the resulting output before it is used to rebuild the VSAM file.

  • SORT FIELDS=(9,17,A),FORMAT=BI

REPRO the sorted file back to the .DATA component of the new VSAM file.

As with any changes to the TPX VSAM files, after the VSAM file has been rebuilt you must also run BATCHINI RESET INTEGRITY. See SAMPLIB member BATCHINI for an example.

Additional Information:

tec426250: How do I keep my TPX VSAM files in 'healthy' shape?