Hi, all,
I managed to figure out SFTP with the help of Mr. Scott Klement's articles and a network engineer here who knows UNIX commands, but I do have a question.
Is it possible to use a CL variable when I name the file? Below, where I have in/replace.csv, I really want in/VARIABLENAME.csv because they want the time stamp included on the file name. I get the feeling that isn't possible... but before I tell my business users that, I want to be sure. Has anyone done something similar?
Has anyone ever seen any good CL examples of various commands to be used with QSH?
Thank you so much for your time!
I managed to figure out SFTP with the help of Mr. Scott Klement's articles and a network engineer here who knows UNIX commands, but I do have a question.
Is it possible to use a CL variable when I name the file? Below, where I have in/replace.csv, I really want in/VARIABLENAME.csv because they want the time stamp included on the file name. I get the feeling that isn't possible... but before I tell my business users that, I want to be sure. Has anyone done something similar?
Has anyone ever seen any good CL examples of various commands to be used with QSH?
Thank you so much for your time!
PHP Code:
CHGVAR VAR(&CMD) +
VALUE('PATH=$PATH:/QOpenSys/usr/bin && +
echo "put /home/sftpad/sharedfiles/replace +
in/replace.csv" | sftp -P 990 +
USER@00.000.000.000')
QSH CMD(&CMD)
Comment