The Compress Object (CPROBJ) command allows you to compress programs, panel groups, menus, display files, printer files, modules, and service programs.
Compressed Objects are objects that consume less storage space than decompressed objects. When a compressed object is used or a compressed program is called, a decompressed version of the object automatically becomes available to the user.
Decompressed Objects are objects that use the system storage space allocated to them and are in a final, ready-to-use state.
Temporarily Decompressed Objects are temporarily decompressed copies of compressed objects. The system allocates storage space for the temporary copies until the system or the user determines that the temporary storage space needs to be reclaimed.
Temporary storage is automatically reclaimed when:
The RCLTMPSTG command is run
The next initial program load (IPL) is run
The object is used often enough to cause the system to permanently decompress it
When an object is permanently decompressed, the compressed version of the object is destroyed as well as any temporary forms of the object; however, compressed versions remain intact as long as the objects are temporarily decompressed.
Restrictions:
The user must have *OBJMGT authority to the object specified and *EXECUTE authority to the library containing the object.
Objects that were saved with storage freed cannot be compressed or decompressed.
Objects that are compressed cannot be saved for a release prior to Version 2, Release 1 of the operating system.
Programs without a valid validation value are not compressed.
Programs that were created before Version 1, Release 3 of the operating system and have not been retranslated (using the Change Program (CHGPGM) command) can not be compressed because no validation value has been generated.
A program, service program, or module that was created prior to Version 3, Release 6 of the operating system must be retranslated before the object can be compressed. Retranslate the object using the CHGPGM, CHGSRVPGM, or CHGMOD commands.
To compress a system program, the user must end all active subsystems.
To prevent abnormal end of a program, the program must not be running in the system when it is compressed.
Specifies the name and library of the object to be compressed.
This is a required parameter.
The possible values are:
*ALL
All objects in the specified library of the object type specified on the Object type prompt (OBJTYPE parameter) are compressed.
generic*-object-name
Specify the generic name of the object to be compressed. A generic name is a character string that contains one or more characters followed by an asterisk (*).
object-name
Specify the name of the object to be compressed.
The possible library values are:
*LIBL
All libraries in the library list for the current thread are searched until the first match is found.
*USRLIBL
If a current library entry exists in the library list for the current thread, the current library and the libraries in the user portion of the library list are searched. If there is no current library entry, only the libraries in the user portion of the library list are searched.
*CURLIB
Only the current library is searched. If no current library entry exists in the library list, QGPL is used.
*ALL
All libraries in the system, including QSYS, are searched.
*ALLUSR
All user libraries are searched. All libraries with names that do not begin with the letter Q are searched except for the following:
Although the following Qxxx libraries are provided by IBM, they typically contain user data that changes frequently. Therefore, these libraries are considered user libraries and are also searched:
'xxxxx' is the number of a primary auxiliary storage pool (ASP).
A different library name, in the format QUSRVxRxMx, can be created by the user for each previous release supported by IBM to contain any user commands to be compiled in a CL program for the previous release. For the QUSRVxRxMx user library, VxRxMx is the version, release, and modification level of a previous release that IBM continues to support.
Specifies the type of object to be compressed. You can specify *ALL, or you can specify one or more of the other possible values.
This is a required parameter.
You can enter multiple values for this parameter.
The possible values are:
*ALL
All menus, panel groups, display and printer device files, programs, modules, and service programs with the name and library specified on the Object prompt (OBJ parameter) are compressed.
*FILE
Display and printer device files with the name and library specified on the Object prompt (OBJ parameter) are compressed.
*MENU
Menus with the name and library specified on the Object prompt (OBJ parameter) are compressed.
*MODULE
Modules with the name and library specified on the Object prompt (OBJ parameter) are compressed.
*PNLGRP
Panel groups with the name and library specified on the Object prompt (OBJ parameter) are compressed.
*PGM
Programs with the name and library specified on the Object prompt (OBJ parameter) are compressed.
*SRVPGM
Service programs with the name and library specified on the Object prompt (OBJ parameter) are compressed.
Specifies the number of days the object has not been used or changed. If the object has not been used or changed for more than the specified number of days, it is compressed. If it has been used or changed, it is left decompressed.
The possible values are:
*NONE
The object is compressed regardless of the number of days it has not been used or changed.
1-366
Specify the number of days. Valid values range from 1 through 366.