Well, thanks to the IBM manual, and the guys on this site, it appears that I finally have SFTP configured properly; however, I've been trying to write a log within my CL program and it is written to the IFS as garbage. It appears that maybe it's not in ascii, or something like that. I've tried 2 ways, and neither produces a readable log. Here's what I've tried:
1) Using verbose to write a debug log (not my preferred log):
CHGVARVAR(&CMD)VALUE('PATH=$PATH:/QOpenSys/usr/bin && sftp -vv -b +
/script/firstdata.ftps $SFTP_USER@$SFTP_HOST >
2) Using an environment variable and creating the log with FILEAPPEND:
addenvvar envvar(QIBM_QSH_CMD_OUTPUT) value('FILEAPPEND=/script/log/sftplog.txt') replace(*yes)
The second option was in Scott Klement's presentation, and I thought would be the cleanest, but it's not working as I expected.
Is there another parm I need to specify to get it to write out in readable format?