Create Zip from Object (CLZIP)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Create Zip from Object (CLZIP) command creates or adds to a ZIP file on the IFS by adding the IBM i objects to the zip file.

Top

Parameters

Keyword Description Choices Notes
OBJ Object to add to ZIP file Single values: *STMF
Other values: Qualified object name
Required, Positional 1
Qualifier 1: Object to add to ZIP file Name
Qualifier 2: Object library Name, *CURLIB
OBJTYPE Object type Character value, *FILE, *SAVF, *USRSPC Optional, Positional 2
STMF IFS File Path name, *NONE Optional, Positional 3
SUBDIR Include subdirectories *YES, *NO Optional, Positional 4
ZIPLOC Zip file location Path name, *HOME Optional, Positional 5
ZIP Zip file name Path name, *OBJ, *OBJLIB Optional, Positional 6
VERBOSE Verbose messages *YES, *NO Optional, Positional 7
COMMENTS Embedded Comments Character value, *NONE Optional, Positional 8
Top

Object to add to ZIP file (OBJ)

Specifies object to add to the ZIP file.

This is a required parameter.

Single values

*STMF
If OBJ(*STMF) is specified, the STMF parameter contains the name of the object/file to be added to the ZIP file.

Qualifier 1: Object to add to ZIP file

name
Specify the name of IBM i object to be added to the ZIP file.

Qualifier 2: Object library

*CURLIB
The job's current library is used as the library name.
name
Specify the name of library in which the object to be zipped is stored.
Top

Object type (OBJTYPE)

Specifies type of object being zipped. This parameter is ignored when OBJ(*STMF) is specified.

*FILE
The object is a file.
*SAVF
The object is a SAVF (save file) object.
*USRSPC
The object is a user space object.
character-value
Specify the object type of the object being zipped. Any valid IBM i object type may be specified.
Top

IFS File (STMF)

Specifies the IFS object to be zipe. This parameter is used when the OBJ parameter is OBJ(*STMF) otherwise this parameter is ignored.

*NONE
The parameter is not used (this is the default and used when OBJ is not OBJ(*STMF)
path-name
Specify the path name of IFS object/file to be zipped.
Top

Include subdirectories (SUBDIR)

Specifies when OBJ(*STMF) is specified, whether to include subfolders and the files they contian in the zip file.

*YES
Subfolders are included in the zip file.
*NO
The files in the folder identified on the STMF parameter are included in the zip process.
Top

Zip file location (ZIPLOC)

Specifies the location of the ZIP file on the IFS.

*HOME
The home directory of the user running the command is used as the folder.
path-name
Specify the path name where the ZIP file exists or will be created.
Top

Zip file name (ZIP)

Specifies the name of the ZIP file.

*OBJ
The zip file name is the same as the object specified on the OBJ parameter. You may not specify *OBJ if OBJ(*STMF) is specified.
*OBJLIB
The zip file name is LIBRARY_OBJECT.ZIP where the library name and object name are combined to form the ZIP file name.
path-name
Specify the name of the ZIP file to be created or used by the command.
Top

Verbose messages (VERBOSE)

Specifies whether messages generated by CLZIP are filtered or unfiltered.

*YES
The messages are not filtered.
*NO
The messages are limited in the scope and siez.
Top

Embedded Comments (COMMENTS)

Specifies additional comments to add to the zip entry.

*NONE
No additional comments are added to the zip file.
character-value
Specify the commants inserted into the ZIP file along with the entry.
Top

Examples

None
Top

Error messages

Unknown
Top