5 pts.
 copying to a folder with .zip extention
Is it possible to use CPYTOIMPF to copy file to a folder with the .zip extention

Software/Hardware used:
Iseries
ASKED: October 22, 2009  6:23 PM
UPDATED: October 23, 2009  1:27 AM

Answer Wiki:
Yes. Just remember that the CPYTOIMPF does do the ZIP. You need to run PKZIP or some other program over your file first.
Last Wiki Answer Submitted:  October 22, 2009  7:39 pm  by  CharlieBrowne   33,730 pts.
All Answer Wiki Contributors:  CharlieBrowne   33,730 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

If you mean that you want to use CPYTOIMPF to add a file to a “compressed folder”, then, no, CPYTOIMPF won’t do it. A compressed folder isn’t a directory. CPYTOIMPF will simply replace the .zip file with an uncompressed streamfile.

You will need CPYTOIMPF to a separate file and then use some other zip utility to add the new streamfile to the .zip file.

Alternatively, you might be able to use the Qshell java ajar tool on the AS/400 to add the streamfile from CPYTOIMPF into the .zip file.

Tom

 110,185 pts.