Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OBJ | Object | Generic name, name, *ALL | Required, Positional 1 |
LIB | Library | Name | Required, Positional 2 |
OBJTYPE | Object type | *ALL, *ALRTBL, *BNDDIR, *CHTFMT, *CLD, *CLS, *CRQD, *CMD, *CSI, *CSPMAP, *CSPTBL, *DTAARA, *DTAQ, *EDTD, *EXITRG, *FCT, *FILE, *FNTRSC, *FORMDF, *FTR, *GSS, *IGCDCT, *IGCSRT, *IGCTBL, *JOBD, *JOBQ, *JOBSCD, *JRN, *JRNRCV, *MENU, *MODULE, *MSGF, *MSGQ, *NODGRP, *NODL, *OUTQ, *OVL, *PAGDFN, *PAGSEG, *PDG, *PGM, *PNLGRP, *PRDAVL, *PRDDFN, *PRDLOD, *PSFCFG, *QMFORM, *QMQRY, *QRYDFN, *RCT, *SBSD, *SCHIDX, *SPADCT, *SQLPKG, *SRVPGM, *SSND, *SVRSTG, *S36, *TBL, *USRIDX, *USRQ, *USRSPC, *WSCST | Optional, Positional 3 |
STG | Storage | *KEEP, *FREE | Optional |
DETAIL | Detail | *BASIC, *FULL | Optional |
TEXT | Text 'description' | Character value, *BLANK | Optional |
RESTART | Restart | *NO, *YES | Optional |
Top |
Specifies the names of an object or the generic name of a group of objects to be archived. All the objects must be in the same library, specified on the Library (LIB) parameter. If the Object type (OBJTYPE) parameter is not specified, all the object types listed in the description of that parameter are archived provided they have the specified names.
This is a required parameter.
Top |
Specifies the library that contains the objects to archive. Type the name of the library.
This is a required parameter.
Top |
Specifies the types of system objects to archive. For a complete list of object types that can be archived, move the cursor to the field for the Object type (OBJTYPE) parameter and press the F4 key.
Top |
Specifies whether the system storage that is occupied by the data portion of files, programs, Structured Query Language (SQL) packages, and journal receivers in the library being archived is freed as part of the archive operation. Only the data portion of the objects is deleted (freed) not the descriptions of the objects.
Note: To prevent the abnormal end of a program, the program being archived must not be running in the system if *FREE specified.
Top |
Specifies the amount of detail that is provided about the archive operation. This information is printed with the job's spooled output in the printer file QPRLOARC.
Top |
Specifies text that briefly describes the archive.
Top |
Specifies whether this is a restart of a previously failed archive.
Top |
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.
Top |
*ESCAPE Messages
Top |