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

Hi All, Can any one give me a suggestion for below prob One job is in MSGW due to decimal dara error and I find out stmt error and Value in DMUP. but my file has millions of records.So how can i find out on which record the error was occured....?

3 Answers  


WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)

0 Answers  


under given circumstances, my cgi should link to another site. How to implement this?

0 Answers   IBM,


What is field reference file?

1 Answers  


how can i get the cursor position in display screen to to display my window?

5 Answers  






HOW CAN WE ENTIRE OBJECTS& IT'S TYPE IN PGM?

1 Answers  


What is the purpose of PR and PI in calling program and called program? in Called program PR is compulsory?

1 Answers   HCL,


What is the Function of PDM?

1 Answers  


how many triggers can be associated with a file?

1 Answers   IBM,


What is difference between fully procedural file and primary file?

1 Answers  


Difference between NOPASS & OMIT?

0 Answers  


How to inner join more than 2 PFs in a CL program using OPNQRYF command?

1 Answers  


Categories