Hi, has anyone FTPed zip files to the I-Series and tried to unzip them. If so what tools did you use.
I downloaded some tools from IBm which works from QSH (Q shell)on the IFS file system.
You can call the unzip command from QSH in a QSYS library but it doesn't identify the file as a ZIP files. That's because during the FTP it creates XXXX file with ZIP as a member when you ftp XXXX.ZIP.
Can anybody help.
Software/Hardware used:
ASKED:
June 21, 2005 2:23 AM
UPDATED:
June 28, 2005 9:57 AM
Hello. I have done FTP to ISERIES, but I have always downloaded to my PC first, then UNZIPPED. Then I just use the DOS FTP command to get to the iseries. Also, they have always be save files. That may not be what you are doing though. If so, you would have to create the save file on the ISERIES first to receive the data. Then you would just do a restore. Hope that helps!
Our company has PKZIP installed on the iSeries and uses that tool to zip/unzip files. However, the files may still be in PC format on the lpar when the zip/unzip operation takes place.
If you can not copy your ibm file to ifs with windows explorer, you can uses ftp (such as you have done) but change the name format :
FTP …
…
namefmt 1
put thepcfile.zip /ifsdir/filename.zip
here after the 400 help on namefmt
NAMEFMT (Select File Naming Format)
To select which file naming format to use on the local system, and
the remote system if it is an AS/400 system, use the NAMEFMT
subcommand as follows:
NAmefmt ?0 ! 1|
NAmefmt You can abbreviate subcommands to the most unique series
of characters.
The current setting is displayed when no parameter is specified.
0 A naming format only for the library file system
database files. This format was available prior to
Version 3 Release 1. The general format is:
libname/filename.mbrname
1 A naming format for all file systems supported by FTP
including the hierarchical file systems, the
integrated file systems and the library file system.
This naming format must be used to work with the
hierarchical file systems and integrated file systems.
This naming format is available at Version 3 Release 1.
Library file system files in this naming format are:
/QSYS.LIB/libname.LIB/filename.FILE/mbrname.MBR
The document library services, an HFS file system, has the
following format:
/QDLS/libname/filename.ext
For optical, the format is:
/QOPT/volname/dirname/filename.ext
Remarque : The name format can only be changed to 0 when the
working directory is a library file system library.
For related information, see the following:
o Using FTP
o Changing from one server file system to another
o Integrated File System Introduction information in the iSeries
Information Center at http://www.iseries.ibm.com/infocenter.
We use a utility called GZIP (www.gzip.org). It’s free.
It compresses and decompresses files on IFS and is the same as Gunzip on windows – probably works with Winzip as well.
As the website states, its imperative transfer is in BINary mode. Good luck.
If you’re looking for a tool, the latest release of Linoma Software’s Transfer Anywhere product, version 1.6.0, has ability to zip and unzip files from a command line.
– Michelle Davidson, editor, Search400.com
Here is a link to an article about using OS/400 commands to unzip.
– the CL command STRQSH and
– the java command jar
http://www.mcpressonline.com/mc/1@175.eBVCbDTTHv4.161@.6aebf1ca