How to back up and restore RDF tables in OPS/MVS
search cancel

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

book

Article ID: 24639

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

 

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

 

Environment

OPS/MVS 

Resolution

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 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