CL Command Reference - STRRTVRDAR
CL Command List > STRRTVRDAR Reference
Description:
The Start Retrieve using OnDemand (STRRTVRDAR) command retrieves a single object in a library that was previously archived. It restores the object description and contents of the object to the library specified on the command. The types of objects that can be retrieved by this command are listed on the Object type (OBJTYPE) parameter.
Examples:
Example 1: Simple Example
STRRTVRDAR OBJ(ACCTDETAIL) LIB(ACCTINGLIB)
This command retrieves a single object in a library that was previously archived using OnDemand Object Archive. This command example retrieves the most current generation of any object type with the name ACCTDETAIL that was archived from the ACCTINGLIB library, and places it back into the ACCTINGLIB library on disk.
Example 2: More Complex Example
STRRTVRDAR OBJ(ACCTDETAIL) LIB(ACCTINGLIB)
OBJTYPE(*FILE) GEN(-1) RTVLIB(ACCTINGTMP)
DLTSAVF(*IMMED)
This command is similar to Example 1 but only retrieves *FILE object types. It retrieves not the most current generation of the file, but instead retrieves the one PRIOR to the most current archived generation. This example also places the retrieved file into an alternate library called ACCTINGTMP and immediately deletes the OnDemand Object Archive save file that contained the object that was retrieved.