Restoring a VSAM cluster means putting application data and index structures back into a consistent state the business can trust. That might be a full IMPORT from last night's EXPORT tape, a REPRO from a cloned volume after storage replication, or a surgical reload of one partition after operator error. Beginners should not treat restore as a single button: it is a phased procedure involving catalog coherence, volume accessibility, security profiles, and application validation. This page gives a runbook mindset: what to freeze before you touch anything, how to choose IMPORT versus REPRO, what to prepare on the target system, how to execute IDCAMS with traceable SYSPRINT, and how to prove the cluster is healthy before you hand it back to online regions. Pair this reading with the dedicated EXPORT, IMPORT, REPRO, VERIFY, and EXAMINE articles for syntax details; here the focus is operational discipline and communication with storage, security, and application teams.
IMPORT consumes EXPORT's special sequential format and rebuilds the VSAM object the way EXPORT described it, which is ideal for disaster recovery when you truly have that backup. REPRO moves logical records from an already openable source into a target cluster whose DEFINE matches your intent; it is ideal when both sides already exist and you are refreshing a copy or building a new cluster from a sorted sequential load file. Mixing them up causes either confusing SYSPRINT errors or silent structural mismatch. When in doubt, read the backup job that created the dataset: if it said EXPORT, your restore path probably says IMPORT.
| Phase | Actions |
|---|---|
| Freeze and assess | Stop writers, capture LISTCAT, note failure time and job names |
| Choose path | EXPORT backup → IMPORT; or snapshot/flash → REPRO; or vendor BCV |
| Prepare target | DEFINE empty cluster if needed; volumes; SMS; RACF |
| Execute restore | IMPORT or REPRO with reviewed SYSIN; retain SYSPRINT |
| Validate | Smoke tests, VERIFY if required, reopen to applications |
Ensure the user catalog that should own the entry is available via JOBCAT or STEPCAT when your site requires it. Confirm no stale alias points at an old volume. If you restore with NEWNAME, update every DD, CICS FCT, or scheduler reference that still mentions the old name, or you will fix VSAM and still take a production outage from wrong DSNs.
RACF generic profiles sometimes assume a high-level qualifier pattern. Restored datasets must satisfy those patterns or opens fail with security errors that look like VSAM problems. Volume lists in IMPORT must match where SMS or storage administrators expect the data to land; guessing causes allocation failures after long IMPORT runs.
Syntax varies by release and site standards; treat this as a teaching template, not copy-paste production JCL.
12345678//RESTORE EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //INDD DD DSN=BACKUP.EXPORT.COPY,DISP=SHR //SYSIN DD * IMPORT INFILE(INDD) - OUTDATASET(NEW.PROD.KSDS) - INTOEMPTY /*
Attach the change ticket number to the jobname or job comment per local standard. Notify online teams before you swap names or switch DDs so CICS file closes happen cleanly. After restore, send a short email listing validation queries executed and who signed off. Those habits prevent the all-too-common midnight success that becomes an 8 a.m. mystery when nobody wrote down what ran.
Keep the broken cluster renamed—not deleted—until the business accepts the restore. Disk is cheaper than lost forensic evidence when totals still disagree. Document how to fall back if validation fails halfway through a business day.
EXPORT backups on tape inherit mount and retention policies. Restore drills should include retrieving the correct volser, handling scratch versus private tape categories, and verifying block size compatibility on the restoring LPAR. Offsite vault retrievals add hours—put that latency into your recovery time objective slides so executives expect reality instead of fantasy instant IMPORTs.
Scripted restores must detect partial completion: if IMPORT ended step RC=8 after writing half the extents, rerunning blindly may worsen state. Wrap IDCAMS in controlled job frameworks that check SYSPRINT for IDC messages your site classifies as hard failures. Idempotent procedures include explicit DELETE of empty targets or INTOEMPTY flags as standards dictate, never both randomly.
Restore is like rebuilding your LEGO castle from a photo box: IMPORT uses the special box that remembers each wall shape (EXPORT). REPRO is copying bricks from your friend's already-built castle piece by piece—you must already have a base plate that fits. Either way, when you finish, you show the castle to a grown-up (smoke test) before you invite the whole class to play (production traffic).
1. Which backup format requires IMPORT for restore?
2. Why run VERIFY after some failures?
3. What should accompany every production restore ticket?