IMPORT and EXPORT
IMPORT and EXPORT (for Experienced)
Summary
EXPORT
The EXPORT command exports or creates a backup copy of a cluster or an AIX.
An empty volume cannot be exported. Access method services recognize and maintain the SMS types during EXPORT.
High-level syntax -
//JOBNAME JOB job-card-parameters
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EXPORT Command
/*
Detail syntax -
//JOBNAME JOB job-card-parameters
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EXPORT entryname
{OUTFILE(ddname)|OUTDATASET(dataset-name)}
[CIMODE|RECORDMODE]
[ERASE|NOERASE]
[INFILE(ddname)]
[INHIBITSOURCE|NOINHIBITSOURCE]
[INHIBITTARGET|NOINHIBITTARGET]
[PURGE|NOPURGE]
[TEMPORARY|PERMANENT]
/*
For complete information, go through the EXPORT (for Experienced)
IMPORT
The IMPORT command imports or restores a cluster, AIX, or catalog from a backup to the original.
The input is the backup created by EXPORT, and the output is the base file from where the data was exported earlier.
High-level syntax -
//JOBNAME JOB job-card-parameters
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
IMPORT Command
/*
Detail syntax -
//JOBNAME JOB job-card-parameters
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
IMPORT {INFILE(ddname)|INDATASET(dataset-name)}
{OUTFILE(ddname)| OUTDATASET(dataset-name)}
[ALIAS|NOALIAS]
[ERASE|NOERASE]
[INTOEMPTY]
[LOCK|UNLOCK]
[OBJECTS
((entryname
[FILE(ddname)]
[MANAGEMENTCLASS(class)]
[NEWNAME(newname)]
[STORAGECLASS(class)]
[VOLUMES(volser[ volser...])])
[(entryname...)...])]
[PURGE|NOPURGE]
[CATALOG(catname)]
/*
For complete information, go through the IMPORT (for Experienced)