Skip to main content
Skip table of contents

Menu item 2: Add an entry to the archive (ADDARCHIVE)

This command is used to add files to an archive.

The display on the screen depends on the previousely entered parameters. This is shown by "- only for...". For example are parameters, that depend on a specifix file-system -shown by "- only for FS(*IFS)" and "- only for FS(*DB2)" -, that is only shown if it was chosen before

The command to add entries to an archive is

CODE
ADDARCHIVE
ParameterDescription
FS

Name of the file-system where the archive is located.

ValueDescription
*DB2The archive will be named as a physical file, with a member..
*IFSThe archive will be named as a file in a path.
ARCPATH

only for FS (*IFS)

Complete path (i.e. /usr/usrlib1/test.zip) for the archive-file.

Following variables are available in any combination. The according path is generated automatically:

VariableContent
%TMP%Default value. The output path "/TMP"
%HOME%Using this option, i-effect® searches for the home path ("/HOME/USERNAME") of the current user.
%CURDIR%Current directory
%USER%Name of current user
%DATE%Current date DD.MM.YYYY
%YEAR%Current year YYYY
%YEAR2%Current year YY
%MONTH%Current month MM
%MONTHNAME%Name of current month.
%DAY%Current day
%WEEKDAY%Current day of week, e.g. 'Friday'.
%TIME%Current time HH:MM:SS.
%TIMESTAMP%Current time stamp, YYYY-MM-DD-HH.MM.SS.MSMSMS
%DEFAULTPATH%This variable inserts the standard path value from the standard settings of the *ZIP module.
ARCFILE

Only for FS(*DB2)

The qualified name of the archive-file.

Wert
ValueDescription
Library

Name of the library that is created in the archive-file.

*CURLIB
The archive file will be created in the current library.

Writing into the special library QTEMP is not supported.

Member

Name of the member in the archive-file

*FIRST
The name of the member with the archive data corresponds to the name of the file

ARCASP

Specifies the auxiliary storage pool (ASP) device name where storage is allocated for the library containing the object to be used (the ARCFILE parameter). If the library is in an ASP that is not part of the thread's library name space, this parameter must be specified to ensure the correct object is used.

*CURASP
The primary ASP in an ASP group will be searched to find the library.

*SYSBAS
The system ASP (ASP 1) and all defined basic user ASPs (ASPs 2-32) will be searched to find the library. No primary or secondary ASPs

FORMAT

The format the archive was created in

ValueDescription
*AR
*CPIO
*TAR 
Archive formats. They have no compression, therefore they are mostly combined with a compressor. You can choose between the following: *BZIP2, *GZ, *PACK200, *XZ, *LZMA
*ZIPArchive. The compression can be created individually for every single entry.
*JARJava archive (also called JAR-file) is a ZIP-file that can contain additional meta-data in the file "META-INF/MANIFEST.MF". JARs are mostly used for Java-programs.
*SEVENZIPSevenzip archive. For the whole archive you can choose between these compressions: *COPY, *LZMA2, *DEFLATE, *BZIP2

*BZIP2
*GZ
*PACK200
*XZ
*LZMA

Compressor. Mostly used with an archive-format (c.f. individual archive-formats), but can compress single files aswell.
CMPTYPE

The method with which the archive is to be compressed. The selection depends on the selected archive-format.

When using the special value *DEFAULT the system selects the default mmethod according to the selected archive type.

Possible special values for Tar, Ar and Cpio:

Value

for *TAR, *AR und *CPIO

Description
*BZIP2A really good but slow compression. Most often used because it is free of patents.
*GZThe well known and commonly used Gzip compression
*PACK200Developed and optimized for the Jar-format.
*XZCompression-format..
*LZMA

The default compression in 7z format. Much better than the other formats.

Value

for *SEVENZIP

Description
*COPYThere is no compression happening. The file is copied into the archive in the original size.
*LZMA2The standard compression in the 7zip format. Significantly better than other formats.
*DEFLATEhe well known compression of Zip-formats is used.
*BZIP2A very good but slow compression. Mostly used because it is free of patents.
DTATYP

Sets, which type of files should be added to the archive.

*FILE
Files are to be added

*SPOOL
Spooled entries are to be added.

INFS

Sets, from which file-system the files are chosen.

*DB2
Data from the DB2 files system.

*IFS
Data from the IFS files system ("/" file system).

FILE

Only for DTATYP(*SPOOL)

The file name of the Spool-file or one of the following special values.

*SELECT
Files can be selected by entering further parameters.

*generic

Part of the file name may be substituted with an asterisk (*). Please enter the first part of a file or file group name followed by (*) to select all files, whose name begins with the first part entered.

JOBNAM

Only for DTATYP(*SPOOL)

Mit der Angabe eines qualifizierten Jobnamens können Sie die Selektion der zu archivierenden Spooleinträge weiter spezifizieren. Geben Sie hier einen bestehenden Jobnamen an, um nur Spooleinträge dieses Jobs zu archivieren.

*ALL 
Es werden Druckausgaben unabhängig vom Jobnamen selektiert.

*CURRENT 
Es werden nur Druckausgaben des aktuellen Jobs archiviert.

SPLNBR

Only for DTATYP(*SPOOL)

The numbers of the devices on which the printed editions are created are usable for the selection.

USER

Only for DTATYP(*SPOOL)

Users that created entries can be added to the selection of spool entries.

*ALL
Dateien werden ohne Berücksichtigung des Benutzer der sie erstellt hat, ausgwählt.

*CURRENT
Nur Einträge des aktuellen Benutzers werden ausgewählt.

OUTQ

Only for DTATYP(*SPOOL)

Name of the outcoming-queue(s) from where entries are processed.

*ALL 
All files in the output queue will be processed.

FORM

Only for DTATYP(*SPOOL)

The spool-entreis can also be selected by form-names.

*ALL 
All form types will be processed.

*STD 
Only the standard form type will be processed..

USRDTA

Only for DTATYP(*SPOOL)

The spool-entry "user data" can be used for the selection as well.

*ALL 
Spool entries will be selected, independent of the entry in „User Data"

STATUS

Only for DTATYP(*SPOOL)

With this setting you set, how the printed editions are to be selected depending on their current status in the system.

*ALL
Es werden Druckausgaben unabhängig vom Status selektiert.

*CLOSED
Only spooled files with the status *CLOSED will be selected.

*DEFERRED

Only spooled files with the status *DEFERRED will be selected.

*SENDING

Only spooled files with the status *SENDING will be selected.

*FINISHED

Only spooled files with the status *FINISHED will be selected.

*HELD

Only spooled files with the status *HELD will be selected.

*MESSAGE

Only spooled files with the status *MESSAGE will be selected.

*OPEN 

Only spooled files with the status *OPEN will be selected.

*PENDING 

Only spooled files with the status *PENDING will be selected.

*PRINTING 

Only spooled files with the status *PRINTING will be selected.

*READY 

Only spooled files with the status *READY will be selected.

*SAVED

Only spooled files with the status *SAVED will be selected.

*WRITING

Only spooled files with the status *WRITING will be selected.

DEVICEOnly for DTATYP(*SPOOL)

The names of the devices on which the printed editions are created are usable for the selection.

*ALL 
Spooled files are selected independent of the chosen device.

PERIOD

Only for DTATYP(*SPOOL)

If parameter spoolfile is set to *SELECT, this parameter specifies the time period for the spoolfiles to be selected. The time period is defined by naming a start and ending time.

Element 1: Start time of day
Specifying a time of day for defining the start of the time period is optional.

Element 2: Start date
The point in time from which on the spoolfiles will be taken into account

*FIRST 
The point in time is defined to be the first (oldest) available spoolfile. .

Element 3: End time of day.
Specifying a time of day for defining the end of the time period is optional.

Element 4: End date. 
The point in time until the spoolfiles will be taken into account.

*LAST 
The point in time is defined to be the last (newest) available spoolfile. .

FRMPATH

Only for INFS(*IFS)

The name of the path in the IFS-file-system, from which files are read and added to the archive. I.E. „/usr/usrlib/lib1". Separator between the paths is a simple "/". A separator in the end is not neccessary.

FRMIFSFILE

Only for INFS(*IFS)

The name of the entry-file to be used in the entry-path. By using „*" and „?" multiple files can be chosen. * Replaces any number of characters in the file name. ? Replaces exactly one character in the file name.

NEWFILES

Only for INFS(*DB2)

The qualified name of the file that is to be added. *ALL
All files of the library are selected.

Library
The library from where the files are selected.

*LIBL
The files from the standard library list are used.

*CURLIB
The files from the current library are used.

Member
The member name *ALL
All member files are selected.

NEWFILEASP

Specifies the auxiliary storage pool (ASP) device name where storage is allocated for the library containing the object to be used (the ARCFILE, NEWFILES parameter). If the library is in an ASP that is not part of the thread's library name space, this parameter must be specified to ensure the correct object is used.

*CURASP
The primary ASP in an ASP group will be searched to find the library.

*SYSBAS
The system ASP (ASP 1) and all defined basic user ASPs (ASPs 2-32) will be searched to find the library. No primary or secondary ASPs

*CURASP 
The primary ASP in an ASP group will be searched to find the library

*SYSBAS 
The system ASP (ASP 1) and all defined basic user ASPs (ASPs 2-32) will be searched to find the library. No primary or secondary ASPs will be searched, even if the thread has an ASP group.

Name 

DSpecify the name of the primary or secondary ASP device to be searched to find the library. The primary or secondary ASP must have been activated (by varying on the ASP device) and have a status of 'Available'. The system ASP (ASP 1) and defined basic user ASPs (ASPs 2-32) will not be searched.


(Warnung)
 Anmerkung: To specify a specific auxiliary storage pool (ASP) device name, you must have use (*USE) authority for each ASP device in the ASP group.

CREATE

If the selected archive does not exist yet, you can choose here if a new archive should be created automatically.

*YES
The missing archive will be created automatically.

*NO
The archive exists already..

REPLACE

If the files that are to be added should already exist in the archive, this parameter says what has to happen with the file that exists in the archive. When searching for redundant files the parameter NAMEFMT () should be taken care of. The build up of the pathname and therefore the name of the eventually already existing entry in the archive depends on these values. *ADD
Existing files will not be replaced.

*REPLACE
Files replace pre-existing entries in the archive with the same name.

NAMEFMT

For creating a pathname that is entered in the archive, following patterns can be used. The file MYLIB/MYFILE (MYMEMBER) is placed as shown in the patterns. The selection of the pattern is oriented on the aimed system on which the file shall be reproduced:

*FILE
The name of the archive file consists of the name of the file. The unspecified sample file contains the name: „MYFILE"

*MEMBER 
The name of the archive file consists of the member file name. The unspecified sample file contains the name: „MYMEMBER"

*NAMEFMT0 
The name of the archive file is created according to the rules for name format "0. " The unspecified sample file contains the name: „MYLIB/MYFILE.MYMEMBER"

*NAMEFMT1 

The name of the archive file is created according to the rules for the name format "1. " The unspecified sample file contains the name: „QSYS.LIB/MYLIB.LIB/MYFILE.FILE/MYMEMBER.MBR"
SPEED

Only for FORMAT(*GZ) oder COMPRESS(*GZ) 

i-effect is able to vary the algorithm in different stages from "fast but barely compressed" to "slow but highly compressed". By choosing 1 the program reaches its highest speed, choosing 9 leads to the highest compression but is significantly slower. The user can use his prefered setup and take different machine-resources into account.

ARCENAME

One or many entries that are placed in the archive by this command get their entry-name based on these settings. You can use *DEFAULT for the scheme used in the parameter NAMEFMT () to create an entry-name based on the name of the entered file or name it yourself in this parameter.


*DEFAULT 
The registration name will be created from the input file name. The name format set by NAMEFMT ( ) will be used for the file

*NAMEONLY 
The original entry file name is used as entry name to the archive. When using DB2 archive entries, this is the name of the member file. When using IFS for archive entries, this is the file name without the path name. By using *NAMEONLY, the entry in NAMEFMT ( ) is not considered.
CRLFINSERT

Only for INFS(*DB2)

While compressing, i-effect can add a line insertion control character in the end of every read data record. If this parameter is given with *YES, i-effect adds the end of every read data record with the character CRLF (carriage return - line feed (X'oD25?)). If *NO is selected, NO additional control characters appear. This function could be helpful if the receiver of the files has to reproduce the original syntax of the files (text files). In this case the usage of the parameter with *YES is needed.

*YES 
The EBCDIC control character for CRLF will be inserted at the end of the record.

*NO 
No additional characters will be inserted.

BLANKCOMP

Only for INFS(*DB2)

Together with the parameter "enter wordwrap", the "suppress following blank characters" can be used to modify the files ahead of the compression. If following blank spaces of a data record shall not be taken into the compressed file, you can do this by entering *YES, so i-effect deletes these blank spaces. If you use CRLFINSERT(*YES) simultaniousely the blankspaces are deleted BEFORE a line insertion control character us added..

*YES
All blanks (Blanks, X'40') at the end of a data record will be removed.

*NO

No characters will be removed.

FRMCCSID

The given information for CCSID (Coded character set identification) if the source file is used by i-effect to implement the character set during the processing. Here you can enter EBCDIC- and ASCII-character sets. If source- and target-CCSID are the same, nothing is implemented.

 *JOB
The CCSID of the job will be used.

1-65535
The CCSID with the given number will be used

TOCCSID

The given information for CCSID (Coded character set identification) of the target files uses i-effect for implementing the character sets during the processing. Here you can enter EBCDIC- and ASCII-Character sets. If the source- and target-CCSID are the same, nothing is implemented.

 *JOB
The CCSID of the job will be used.

1-65535
The CCSID with the given number will be used

ENCRYPT

Only for FORMAT(*ZIP)

The parameter Encryption is used to encrypt and decrypt ZIP archive entries according to the AES standard. This allows entries to be protected against unauthorized access by entering a key up to 256 bits long. Such a protected archive can also be edited by AES compatible applications like WinZip(R) V9.

*NONE The archive entry is not encrypted CCSID of the password The specification of the CCSID (Coded character id), in which the password was originally entered. With *DFT we use the standard ASCII code page 819. encryption strength The size of the key to be used. You can choose between 128, 192 and 256 bits.

PASSWORD

Only for FORMAT(*SEVENZIP)

The Encryption parameter is used to encrypt and decrypt 7z archive entries. *NONE
The archive entry is not encrypted CCSID of the password The specification of the CCSID (Coded character id), in which the password was originally entered. With *DFT we use the standard ASCII code page 819.

DELETE

After processing a file, the original can be deleted if desired. *YES The successfully processed input member is deleted. If the file does not contain any other members, the file is also deleted. *NO No meber/files are deleted.


NULLCOMP

A file to be compressed may contain fill characters with the value X'00' at the end of the file. This is done, for example, by transferring data from other systems via FTP to the DB/2 file system of the Power Systems. However, it is also possible that these characters are a mandatory part of the data to be compressed. This parameter can be used to specify whether the characters described above are to be compressed at the end of the file or not. Alternatively (this is necessary for certain applications) the number of x'00' fill characters can also be filled to an even number of fill characters. *ALLNULL All characters with the value X'00' at the end of the last data record of a physical file are processed and compressed. *NONULL All characters with the value X'00' at the end of the last data record are ignored and NOT compressed. *EVENNULL i-effect ignores all characters with the value X'00' at the end of the last data set of a physical file, but inserts ONE X'00' characters if the total number of bytes to be compressed is odd. This ensures that the number of bytes in the file after decompression is always an even number. (This may be necessary for certain software products on other systems.)

ENTRYCCSID

The CCSID (Coded character set identification) of the entry name can be set with this parameter in case of detection problems. The contents of the files are not affected. *AUTO Reads the CCSID from the archive (recommended).

RCDLEN

Specifies the length (in bytes) of the data records stored under the physical file. A value in the range from 1 to 32766 bytes for the record length can be specified. The default record length is 80 bytes.

SIZE

Specifies the initial number of records in each part file of the file, the number of records for each extension that is added to the part file, and the number of repetitions in which the extension is automatically applied. The number of records for each part file is specified as the total number of records that can be stored there (including deleted records). *NOMAX The number of records that can be added to each part file of the file is not limited by the user. The system determines the maximum number of data

STMFCODPAG

Mit dem Parameter STMFCODPAG (Stream File Code Page) können Sie Folgendes festlegen die Art und Weise, wie i-effect Daten aus dem Format konvertiert, in dem sie gespeichert sind wird auf der iSeries (typischerweise EBCDIC) in einem geeigneten Format gehalten in die Stream-Datei (typischerweise ASCII). 

Die Regeln für die Entscheidung, wie iSeries-Daten konvertiert werden sollen, sind folgende komplex und von zahlreichen Faktoren abhängig, darunter die Stream-Datei Format (wie im Parameter TOFMT angegeben). 

Insbesondere setzt PDF eigene Regeln für die Datenverschlüsselung um.und diese werden in allen Fällen befolgt. Der auf der Registerkarte Der Parameter STMFCODPAG wird daher bei der PDF-Erstellung ignoriert. und CVTSPL konvertiert den Inhalt der gespoolten Datei und alle anderen Daten. (z.B. die in den Parametern TITLE oder KEYWORDS angegebenen Werte) auf ein Format kompatibel mit PDF.

Sie können einen der speziellen Werte verwenden: 

*WINDOWS 
(Standard) Gegebenenfalls geeignete Windows-ASCII-Kodierung Schema ausgewählt ist. Bei der Konvertierung einer gespoolten Datei nach TEXT auf einer US iSeries (CCSID 37), Codepage 1252 (Windows Western ASCII-Codierung) wird für den ASCII-Text ausgewählt, während auf einem griechischen iSeries (CCSID 875), Codepage 1253 (Windows Griechisch) ausgewählt ist. 

*PCASCII 
Ein geeignetes Windows-ASCII-Kodierungsschema ist gegebenenfalls ausgewählt. Zum Beispiel bei der Konvertierung einer Spool-Datei nach *TEXT auf einem US iSeries (CCSID 37), Codepage 1252 (Windows Western ASCII Kodierung) für den ASCII-Text ausgewählt ist, während auf einer griechischen iSeries (CCSID 875), Codepage 1253 (Windows Griechisch) ausgewählt ist.

*ISOASCII 
Gegebenenfalls wird ein geeignetes ISO-ASCII-Kodierungsschema gewählt. Zum Beispiel bei der Konvertierung einer Spool-Datei nach *TEXT auf einem US iSeries (CCSID 37), Codepage 819 (ISO 8859-1) wird für die ASCII-Datei Text, während auf einer griechischen iSeries (CCSID 875), Codepage 813 (ISO 8859-7) ausgewählt ist. 

*STDASCII 
Gegebenenfalls wird ein geeignetes ISO-ASCII-Kodierungsschema gewählt. Zum Beispiel bei der Konvertierung einer Spool-Datei nach *TEXT auf einem US iSeries (CCSID 37), Codepage 819 (ISO 8859-1) wird für die ASCII-Datei Text, während auf einer griechischen Series (CCSID 875), Codepage 813 (ISO 8859-7) ausgewählt ist.

to 7z format: If an encrypted 7z archive is modified by adding (ADDARCHIVE) or deleting (DLTARCHIVE) an entry, then the archive is completely decrypted. This is because the complete archive has to be written again and the *ZIP module only supports decryption, but no encryption.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.