PGM
QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt
serverUserID@server')
ENDPGM

Can u plz tell me what the above code do exactly?

Answer Posted / syam

-b = Batch file
/home/test/myfile.txt = path of input file

serverUserID@server' = ip address

then

PUT or Get command

Bye command = Quit


SFTP is a Linux Unix command

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sflrolval?

831


Difference Between Call & Sbmjob?

987


how do you know that records are locked?

1505


what would be the effect on the field where reverse image, underline and highlight display attributes are active ?

1297


what is the maximum number of subroutines allowed in rpg?

1359


can you display a empty subfile?

968


In Which Specs Arrays, Tables & Constants Are Defined?

885


how does the runqry show the output?

1126


what is the maximum number of subfiles that can specified in a display file ?

1361


What is the difference between non-join logical files and join logical files?

809


how do you read changed records backward in subfile?

800


What Is The Object Type Of Pf, Lf, Printer File & Display File?

918


if we tried to move year part of *iso date into a field of length 3, what will happen ?

844


A join logical file has how many record formats?

835


what is the maximum number of files allowed in rpg?

1209