Windows programs supporting the ZIP format (WinZip) are able to read BS2ZIP containers provided those BS2000 containers have been created in WinZip compatible mode.
BS2ZIP is able to read Windows ZIP archives provided they are opened and BS2ZIP is able to read them in compatible mode.
The transfer of such containers must be performed in binary format. The following shows an example of transfer.
Under DOS command prompt:
D:\>ftp ftp>open 999.999.999.999 connected to 999.999.999.999 user : bs2zip password : ******* account : xxxx ftp>binary ftp>quote ftyp binary ftp>get bs2000.zip ftp>put pc.zip ftp>bye
D:\bs2000.zip
can be opened by WinZip and $BS2ZIP.PC.ZIP
can be opened by BS2ZIP.
The length of the SAM and ISAM file records is limited by the buffer length of the file (BUFFER-LENGTH). This does not apply for records of Windows text files. To minimize the risk of too long records, BS2ZIP always specify a buffer length *STD(16) which corresponds to 32 KB - 8 Byte. This must be taken into account by the applications reading such files.
If longer records are found, they are split in as many records as necessary.
Transferring ZIP files with openFT
When transferring ZIP files from/to Windows with openFT< V11.0, the ZIP files must be converted into the correct file format, either before transfer (transfer to Windows) or after transfer (transfer from Windows).
Indeed,
BS2ZIP only manages PAM files withBUFFER-LENGTH=STD(x)
PAM files may not be transferred to Windows with openFT< V11.0
the files must be transferred in binary mode (mandatory for zipped files)
the resulting file transferred (from Windows) with openFT< V11.0 is a SAM file with BUFFER-LENGTH=STD(x) and RECORD-FORMAT=U
SAM/PAM conversion
You can execute conversion in BS2ZIP using the CONVERT-ZIP-CONTAINER statement. See the description of “CONVERT-ZIP-CONTAINER”.
For compatibility reasons the converter can also be called using the /START-SAM-PAM-CONVERTER command:
You are prompted to specify the input file (first parameter) and the output file (second parameter). The converter converts the input file as follows:
a PAM file with BUF-LEN=STD(x) into a SAM file with BUF-LEN=STD(8)
a SAM file with BUF-LEN=STD(x) into a PAM file with BUF-LEN=STD(16)