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?

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / ravi

I believe, it gets the details of the file mentioned in the path like created/changed date etc.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

define data structure?

1 Answers   IBM,


how can I control the way a remote browser uses its cache?

0 Answers   IBM,


how to toggle between single line and multi - line display of a particular record in a subfile?

1 Answers   IBM,


what is the use of unique keyword and what level it is defined?

1 Answers   IBM,


What is the purpose of CHGPF (Change physical file) command?

1 Answers  






Q. 1.What are the in build functions in CL program and what are uses of thes in build functions? 2.How we can create own command in CL program? 3.What is use of STRSRVJOB?

3 Answers   CTS,


When will DUMP and DEBUG opcodes be ignored?

1 Answers  


what is the disadvantage of using global variable?

0 Answers   IBM,


What is LDA?

1 Answers  


How to write a password mask program in as400? like the password which i type should be displayed as '*****' r ###### which the user wishes to dispaly if u could help me with url r the solution in written code this will help me

21 Answers   Accenture, SNS,


How we can delete all the Logical File of a Physical file in one instance ?

9 Answers   IBM,


How do you put jobs in batch mode?

1 Answers  


Categories