CL Command Reference - STRARCRDAR

CL Command List > STRARCRDAR Reference

Description:

The Start Archive using OnDemand (STRARCRDAR) command archives a copy of a single object or a group of objects located in the same library. The specified objects are archived by writing a copy of each object to the archive media as specified in the object policy (either optical or tape). The objects on the system are not affected unless the command specifies that the storage should be freed. The history for the object is not updated with the fact that it was archived. Only a save of the object using one of the system save commands will update the object¡¯s history.


Examples:

Example 1: Simple Example

STRARCRDAR OBJ(MYOBJECT) LIB(MYLIB)

This command archives objects of any type in MYLIB library by the name of MYOBJECT into OnDemand Object Archive.



Example 2: More Complex Example

STRARCRDAR OBJ(MYOBJECT) LIB(MYLIB) OBJTYPE(*FILE)

This command is similar to Example 1 but archives only objects of type *FILE.