Just to provide a close to this issue. It turns out the problem was caused
by the CCSID of the Script.
It was a "can't see the forest for the trees" moment. During the
development process the CCSID of the
Script changed from *PCASCII to 37. Changing it back let the Script run
successfully.
Many thanks to Richard Schoen for his excellent work on QSHONI.
I've used it to implement sFTP and cURL and it was a timesaver.
Also, thanks to all who commented. Open Source is a new adventure for me.
Sent: Saturday, June 19, 2021 at 7:42 PM
From: "Jacob Banda" <jnbanda@xxxxxxxxxx>
To: opensource@xxxxxxxxxxxxxxxxxx
Subject: Re: [IBMiOSS] [EXTERNAL] Re: sFTP File Transfer Failure
Thanks Kelly, Kevin, and Jim! Good info!
-----------------------------------------
Jacob Banda
-----------------------------------------
date: Fri, 18 Jun 2021 18:06:44 +0000
from: Kelly Cookson via OpenSource <opensource@xxxxxxxxxxxxxxxxxx>
subject: Re: [IBMiOSS] [EXTERNAL] Re: sFTP File Transfer Failure
Just to provide IBM links backing up what Kevin Adler and Jim Oberholtzer
said:
ASCII and BINARY are subcommands with FTP on the IBMi.
[1]
https://www.ibm.com/docs/en/i/7.4?topic=information-ftp-client-subcommands-i
There no equivalent ASCII and BINARY subcommands with SFTP on IBMi.
[2]
https://www.ibm.com/support/pages/does-sftp-have-ascii-and-binary-modes-ftp
Thanks,
Kelly Cookson
Senior Software Engineer II
Dot Foods, Inc.
1-217-773-4486 ext. 12676
[3]www.dotfoods.com
------------------------------
Subject: Digest Footer
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list To post
a
message email: OpenSource@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: [4]
https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
[5]
https://archive.midrange.com/opensource.
Help support midrange.com by shopping at amazon.com with our affiliate
link: [6]
https://amazon.midrange.com
------------------------------
End of OpenSource Digest, Vol 6, Issue 38
*****************************************
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: [7]
https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at [8]
https://archive.midrange.com/opensource.
Help support midrange.com by shopping at amazon.com with our affiliate
link: [9]
https://amazon.midrange.com
References
Visible links
1.
https://www.ibm.com/docs/en/i/7.4?topic=information-ftp-client-subcommands-i
2.
https://www.ibm.com/support/pages/does-sftp-have-ascii-and-binary-modes-ftp
3.
http://www.dotfoods.com/
4.
https://lists.midrange.com/mailman/listinfo/opensource
5.
https://archive.midrange.com/opensource
6.
https://amazon.midrange.com/
7.
https://lists.midrange.com/mailman/listinfo/opensource
8.
https://archive.midrange.com/opensource
9.
https://amazon.midrange.com/
As an Amazon Associate we earn from qualifying purchases.