Example Batch SFTP Script - ibm.com
https://www.ibm.com/support/pages/node/72075110.06.2020 · The two pieces for a batch SFTP script are as follows: 1. A CL program 2. An input file The following is an example of a simple CL program that does an SFTP based on the commands in the input file: PGM QSH CMD('/QOpenSys/bin/sftp -b/Command_File_Path_name serverUserID@server') ENDPGM The parameters that must be customized to the environment …
FTP to SFTP - Code400 -The Support Alternative
code400.com › forum › forumMar 12, 2015 · Suddenly, they (vendor who hosts server) have said they're shutting off FTP and want me to use SFTP (port 22) instead. In my scripts, I don't even specify a port (only an IP address), but I guess it's defaulting to port 21 (?). Anyway, here are a couple examples of simple FTP scripts currently running happily (they are run by CL and RPG programs).