copying to a folder with .zip extention
5 pts.
0
Q:
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: Oct 22 2009  6:23 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
6540 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Yes.
Just remember that the CPYTOIMPF does do the ZIP.
You need to run PKZIP or some other program over your file first.
Last Answered: Oct 22 2009  7:39 PM GMT by CharlieBrowne   6540 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

TomLiotta   7550 pts.  |   Oct 23 2009  1:27AM GMT

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

 
0