BackbuttonHow to Backup MCP Catalog to A-Series Native Data CD

Introduction

This How To is about backing up an A-Series MCP Catalog to a Data CD-ROM and retaining the native MCP file structure by using an A-Series Extended Attribute Record.

The A-Series Extended Attribute Record is recognized by the MCP (because the system identifier is 'UNISYS A SERIES') and ignored by other operating systems. 

When a logical file on the CD-ROM is opened by a program on the A-Series, the attributes FILEKIND, MAXRECSIZE and MINRECSIZE, SECURITYTYPE, EXTMODE, CREATIONTIMESTAMP and ALTERTIMESTAMP are set from the Extended Record Attributes.

This document does not describe backing up a Catalog to a Library/Maintenance CD-ROM, nor to a Library/Maintenance CD-ROM Image file, nor to a Wrapped Volume, which are other ways an MCP Catalog may be backed up to a CD-ROM.

The following sections describe how to create a copy of the Catalog, and then how to copy it to a CD-ROM with an A-Series Extended Attribute Record.

Creating a Copy of the Catalog - CopyCat

Use the ODT COPYCAT command to copy the current Catalog to a file. Using this command ensures that the Catalog is copied in a consistent state, unlike a normal Library/Maintenance copy.

COPYCAT *CATALOG20040105 ON NUCLEUS

See the System Commands Operations Reference Manual for more information about the COPYCAT command.

Creating a Copy of the Catalog - CopyWrite

Invoke CopyWrite to create a Copy of the Catalog.

COPY *CATALOG AS *CATALOG20040105
     FROM NUCLEUS(CD,FAMILYOWNER=MCP,HOSTNAME=LOCAL)
     TO BACKUP(DISK)

The current *SYSTEM/CATALOG is copied using the SETSTATUS Type 2 SubType 20 call, which starts the COPYDIR Independent Runner to perform a COPYCAT. This creates the same file as a COPYCAT, but is available using WFL rather than being an ODT command.

The <source family>, NUCLEUS in the example, can be any name since the DL CATALOG is used by CopyWrite to locate the Catalog.

The <destination family>, BACKUP in the example, is the name of the family to which the Catalog will be copied. It must have a KIND of DISK.

Copying the Catalog to an A-Series Data CD-ROM

Invoke CopyWrite to create the A-Series Data CD-ROM.

COPY *CATALOG20040105
   TO CATALOG20040105(CD,HOSTNAME=LOCAL,SCRATCHPOOL=ASERIES)

If the CD-ROM is to be burnt on the A-Series, set the CDCOPIES attribute.

COPY *CATALOG20040105
   TO CATALOG20040105(CD,HOSTNAME=LOCAL,SCRATCHPOOL=ASERIES,
                                                    CDCOPIES=1)

If the CD-ROM is to be transferred using Binary FTP to another host for burning, set the AUTOUNLOAD attribute.

COPY *CATALOG20040105   TO
     CATALOG20040105(CD,HOSTNAME=BURNHOST,
                                               SCRATCHPOOL=ASERIES,
                                               AUTOUNLOAD=ON,USERCODE='anonymous')

Listing the Files on an A-Series Data CD-ROM

Start FLEX Inquiry and use the Files command.

Files (*)= On CATALOG20040105(CD) : ATT