CNS DOCWEB Home
CNS Home Page
CNS Publications Page
Search All CNS Docs

DOCWEB Logo PDF Available

Utilities: ROTATE

CNS Document ID: D0025
Last Updated: 09/12/2002

Abstract

The ROTATE utility can be used to rotate tape volumes on which generations of a generation data group reside. It can also be used to catalog any data set using the volume information of an existing cataloged data set.


UF Computing & Networking Services

CNS Information Services

2124 NE Waldo Rd, Suite 2100
Gainesville Florida  32609-8922
(352) 392.2061


Table of Contents

ROTATE
Rotating Data Sets in a Generation Data Group (GDG)
Cataloging a Data Set Using Old Volume Information

ROTATE

The ROTATE utility can be used to rotate tape volumes on which generations of a generation data group reside. It can also be used to catalog any data set using the volume information of an existing cataloged data set.

Rotating Data Sets in a Generation Data Group (GDG)

Suppose "U.USERID.DATA" is a cataloged generation data group consisting of four generations (0, -1, -2, -3), each on a different magnetic tape volume. To create a new generation cataloged on the same volume as 'U.USERID.DATA(-3)', execute the ROTATE utility as follows:

// EXEC PGM=ROTATE,PARM='U.USERID.DATA(-3)'

If ROTATE has been invoked AFTER any reference to the GDG data set using relative generation numbers, the new relative generation numbers will not "take effect" during the current jobstream (See NOTE2). If ROTATE has been invoked BEFORE any such reference, then after execution of the utility, the new generation can be referred to as follows:

//OUTPUT DD DSN=U.USERID.DATA(0),DISP=(OLD,KEEP)

For example, if the data sets in the generation data group are cataloged on TAPEA, TAPEB, TAPEC, and TAPED, the following table shows how the data sets will be cataloged after execution of the utility. The data sets have not moved but they have changed generation numbers.

Table 1. Generation Data Group with ROTATE

TapeData Set Name BeforeData Set Before
TAPEAU.USERID.DATA.G0004V00U.USERID.DATA(0)
TAPEBU.USERID.DATA.G0003V00U.USERID.DATA(-1)
TAPECU.USERID.DATA.G0002V00U.USERID.DATA(-2)
TAPEDU.USERID.DATA.G0001V00U.USERID.DATA(-3)
TapeData Set Name AfterData Set After
TAPEDU.USERID.DATA.G0005V00U.USERID.DATA(0)
TAPEAU.USERID.DATA.G0004V00U.USERID.DATA(-1)
TAPEBU.USERID.DATA.G0003V00U.USERID.DATA(-2)
TAPECU.USERID.DATA.G0002V00U.USERID.DATA(-3)

Cataloging a Data Set Using Old Volume Information

The ROTATE utility can also be used to catalog a data set using the volume information of an existing cataloged data set. The data set names must be expressed as fully qualified names and NOT as generations of a generation data group. To use this feature, specify two data set names in the PARM field separated by a comma as follows:

// EXEC PGM=ROTATE,PARM='U.USERID2.INVENT,U.USERID2.ACCOUNTS'

After execution of the utility, 'U.USERID2.ACCOUNTS' will be cataloged on the same volume as 'U.USERID2.INVENT'.

Note

This utility can be used for tape data sets residing on 20 or fewer volumes.

Table 2. Return Codes

RETURN CODEEXPLANATION
0Normal end of the step.
8The current generation was coded in the PARM field.
U100An abnormal condition occurred.

Note

The IBM JCL User's Guide states that "relative generation numbers are obtained from the catalog as it existed at the beginning of the first step that specifies the generation data set by relative generation number."

Your Comments are Welcome

We welcome your comments and suggestions on this and all CNS documentation. Please send your comments to:


CNS Information Services

2124 NE Waldo Rd, Suite 2100
Gainesville Florida  32609-8922
(352) 392.2061

UF Computing & Networking Services
2124 NE Waldo Rd, Suite 2100
Gainesville, Florida 32609-8922

Phone: (352) 392.2061
E-mail: editor@cns.ufl.edu

CNS DOCWEB Home
CNS Home Page
CNS Publications Page
Search All CNS Docs