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 |
how does union file maintains record formats?
the maximum number of subfiles that can be active for a single file is ____ .
what is subfile?
what is externally described file ?
what does check opcode is used?
what would be the effect on the field where reverse image, underline and highlight display attributes were active?
I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the 2nd member in the RPG pgm (in RPG400),how can I use this.... I know the possible answers i.e. useing API 'QCMDEXE' or Before calling the pgm I can use OVRDBF for that member... but I dont' want to use both the tips in above scenarion. Does any body tell me how can i use this ....?
what is a non-join logical file?
What is the function of SEU ?
what is RCLRSC?
What the purpose of the keywords FIFO, LIFO, FCFO?
how can a procedure will be added in to a srvpgm