The following changes have been implemented for BS2ZIP V21.0A20:
EXTRACT-FILE statement:
With operand CHARACTER-CONVERSION it is possible to define a source and target coded character set that is used for conversion of SAM or ISAM files during extraction.
Several commands were extended with parameter *PATH-NAME for specifying Unix/Windows compatible file names without interpreting special characters (* or / ) as BS2000 wildcards. These commands with their parameters are ADD-FILE TO-FILE, DELETE-FILE FILE-NAME, EXTRACT-FILE FILE-NAME, SHOW-FILE-ATTRIBUTES FILE-NAME.
SHOW-FILE-ATTRIBUTES will show unavailable attributes of Gzip files as NOT AVAILABLE.
The new S variable LAST-BYTE-VALID was added to structured output of SHOW-FILE-ATTRIBUTES command.
Minor changes were done to the descriptions of command ADD-FILE and its parameters TO-FILE and DATA-TYPE to clarify behavior of the program.
The following changes have been implemented for BS2ZIP V21.0B00:
OPEN-ZIP-CONTAINER and CONVERT-ZIP-CONTAINER statement:
Newly created archives, as well as those converted from SAM to PAM, will have the Last Byte Pointer enabled by default. If the Last Byte Pointer is not desired, the user can apply an optional rep that reverses this change.
The following changes have been implemented for BS2ZIP V21.0B10:
ADD-FILE, EXTRACT-FILE, SHOW-FILE-ATTRIBUTES statement:
Now during ADD-FILE BS2ZIP stores additional metadata about files in archive not only inside of the file-info, but also inside of a extensible data field with a tag 0xBC6E. Some of the additional metadata fields will be output by SHOW-FILE-ATTRIBUTES command and it will be used to restore the original attributes of the file more accurately during EXTRACT-FILE. Also both sub operands of EXTRACT-FILE now accept any CCSNAME, which is defined in XHCS, while TO-CCS sub operand can accept a default value of *STD.
EXTRACT-FILE statement:
Before extracting files from archive, that were added there on an open systems, a logic that determines the most likely encoding of the member runs if CHARACTER-CONVERSION is not set to *BY-PARAMETERS, *TO-WIN-ANSI or *TO-EBCDIC. This logic picks from the list of EDF04F, ISO8859-F, UTF-8, UTF-16. If *TO-WIN-ANSI is specified, then current encoding is assumed to be EDF04F. If *TO-EBCDIC is specified, then current encoding is assumed to be ISO8859-F.
The following changes have been implemented for BS2ZIP V21.0B20:
For ADD-FILE the new operand DELIMITER is introduced. With this operand the user can control the usage of line delimiters of files added to a winzip compatible archive. This feature is useful in case the files are extracted later on Linux or other *nix systems.
If files from open systems platforms are extracted from a winzip compatible archive overwriting an existing file the specified CODED-CHARACTER-SET of the existing file specifies the desired output encoding.
The following changes have been implemented for BS2ZIP V21.0B30:
For EXTRACT-FILE the new operand DELIMITER is introduced. It allows to specify delimiter used based on the type of encoding that the file stored in the archive. Also it is possible to specify the binary representation of the delimiter explicitly.
Empty strings of text files are no longer padded with a space character during EXTRACT-FILE. But it is possible to restore this behavior with PAD-EMPTY-RECORD = * YES.
Standard conversion is the default behavior for character conversion.
The following changes have been implemented for BS2ZIP V21.0B31:
Encryption and compression is inapplicable to empty file as they are stored without compression as they only require to store their metadata without initialization vectors.
The following changes have been implemented for BS2ZIP V21.0B32 an V21.0B33:
New CCSNAME type Unknown - for handling files that have a CODED-CHARACTER-SET that cannot be interpreted as EBCDIC, ASCII or Unicode by both BS2ZIP and XHCS.
SHOW-FILE-ATTRIBUTES displays not only current and original CCSNAME, but also their CCS types for files added to archives by BS2ZIP.