How to back up and restore RDF tables in CA OPS/MVS?

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

Question:

How to back up and restore RDF tables in CA OPS/MVS.

Answer:

Installation provided routine CCLXEXEC(WRITETBL) can be used from a OPS/REXX code to export an RDF table to a sequential dataset that can be used by CCLXEXEC(READTBL) to reconstruct in the same or a different CA OPS/MVS system. Consider tailor and use the following sample programs to perform a backup and restore of two very popular SSM RDF tables:

To backup:

/* rexx */
address osf
'OI WRITETBL TABLE(STCTBL) DSNAME(your_HLQ.OPS.STCTBL)',
'SPACE(10,1) UNIT(SYSDA) SUBSYS(OPSS)'
exit

/* rexx */
address osf
'OI WRITETBL TABLE(STCTBL_ACT) DSNAME(your_HLQ.OPS.STCTBL.ACT)',
'SPACE(10,1) UNIT(SYSDA) SUBSYS(OPSS)'
exit

To restore:

/* rexx */                      
address osf                     
'OI READTBL  TABLE(STCTBL_ACT_NEW) SUBSYS(OPSS)',
'DSNAME(your_HLQ.OPS.STCTBL.ACT)' 
exit                            

/* rexx */                      
address osf                     
'OI READTBL  TABLE(STCTBL_NEW) SUBSYS(OPSS)',
'DSNAME(your_HLQ.OPS.STCTBL)' 
exit                        

Additional Information:

You can find additional information at our website: CA Technologies Documentation