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 the necessary keyword for non-join logical file?

1313


What is binder language ?

1561


how to read database records without locking them?

1289


What Does 'sr' In Columns 7-8 Of C Specs Mean?

1200


what are the different types of variables available in cl?

1168






what is maximum number of arrays allowed in rpg?

1365


which of the cl command can be used to determine which logical files are dependent on a specific file?

691


what if my system I runs with system value qccsid 65535?

702


A join logical file has how many record formats?

703


What is difference between rename and prefix?

661


what is a program described file in rpg?

1203


what is the function of cpyf command?

1151


what is the difference between sflclr and sflinz?

1219


what are the different types of arrays available in rpg ?

1093


Space & Skip Are Which Level Keywords?

842