|
That's very helpful thank you. Once I get back to the office I'm going to
ask our iseries specialist to try to create the script and create a zip
file so we can transfer it to a Windows box and see if we can unzip it.
On Sat, Oct 17, 2020, 3:55 AM Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>
wrote:
Add capital M to cf - that suppresses the inclusion of the manifest,vhamberg@xxxxxxxxxxxxxxx
which is used only by Java that I know of.
And if you have several files in a directory, you'll need more - here's
what we use -
qsh cmd('jar cfM "test.zip" -C /path-of-files-to-zip .')
Here is the M to suppress the manifest. It also has the -C to change
directory to where the files are you want to compress, and the period is
a wildcard to include everything in that directory - I assume this
wildcard could be any generic file specification.
The full quotes around test.zip might not be needed, they do work when
test.zip is a more fully-qualified path name for the zip file.
HTH
Vern
On 10/16/2020 2:29 AM, Niels Liisberg wrote:
In you cl code - simply put:
qsh cmd('jar cf test.zip test.csv')
just check the 'cf' parameter and make it work for you usecase
On Fri, Oct 16, 2020 at 2:33 AM Vernon Hamberg <
files,
wrote:
Laurence
You can definitely use JAR - we do it all the time to create XLSX
boxit'swhich are basically PK-zipped archives.
We wrap JAR in a QShell command - use the option to not create the
manifest - it's something like -mcf or -Mcf or the like.
HTH
Vern
On 10/15/2020 3:06 PM, Laurence Chiu wrote:
1. Found the jar utility and asked one of our IBMi users to check if
whichinstalled. It is. Can the jar utility be executed from a CL script
theis
what we need?
2. Can't send directly to the Linux box because it's in the cloud and
Power server on the internal network won't allow that. The Windows
tohowever over a VPNwrote:
But seems that I have a solution
Thanks
On Fri, Oct 16, 2020 at 8:45 AM Jon Paris <jon.paris@xxxxxxxxxxxxxx>
Why bother with the Wiindoze box? Just use theIBM i to send direct
wrote:the
Linux box.
On Oct 15, 2020, at 3:27 PM, Laurence Chiu <lchiu7@xxxxxxxxx>
mailingserver
I need to transfer some 20G of text files each night to a Linuz
thenin a
remote location. The plan is to zip all the files up, use a Windowsserver
to access the Power server (on 7.3) via SSH, grab the zip file and
unzipSFTP to a remote location. That Linux remote location would then
be IIBMithe
files and make them ready for an ETL process into a Data warehouse.
Some of the non iSeries guys were asking if the zip file created by
would be compatible with standard zip files and I think they would
mailingthought I would check here first.
Thanks for any feedback.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
affiliatelist
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxxrelated questions.
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
Help support midrange.com by shopping at amazon.com with our
link: https://amazon.midrange.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
affiliateaffiliatelist
relatedTo post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
questions.
Help support midrange.com by shopping at amazon.com with our
list--link: https://amazon.midrange.com
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
relatedTo post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
questions.
Help support midrange.com by shopping at amazon.com with our
listlink: https://amazon.midrange.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.