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
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 |
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 |
What is the purpose of SFLFOLD and SFLDROP keywords?
which are the query selection criteria, which can be given in a query?
how will you display a particular page in subfile ?
Define each of the following operation codes a, b, c, d, e
when would you prefer logical file than opnqryf?
What is the symbol used for shifting fields in SDA?
Is it necessary to define all formats ? Which are mandatory and which are Optional ?
1)In a pf if we delete a record then how to insert a new record at the same place in that pf?? any logic or code? 2)A batch job is taking a lot of time to run,found that it is going into loop and wrapping up so how to skip that loop and process the job without changing the code? 3)In which scenario C D I R comes and C D G F comes in a job? 4)If a job came to error while processing a file how we can know at which record the error hit and how to skip that record and process other records without changing program code?
How many primary files allowed in a program?
WHAT IS DECIMAL DATA ERROR IN RPG IV...WHEN WILL IT HAPPENS?
how we lock a pf???? what are the parameters used in this command.how we understand whether an object is locked or not?? using command .....we have to use *PSSR? and trough *status..how??.if we give an eg to me???pls answer me anyone..
Difference between NOPASS & OMIT?