How can I automate sftp commands(ls & get) in CL program..
If I want to write two scripts one for each command...
can u plz tell where the script should be written?
& what will be the content of each scripts?
Answer Posted / syam
Yes you need to write CL program with SFTP script.
LIKE:
CRTPF QTEMP/TESTFILE RCDLEN(50)
OVRDBF FILE(STDOUT) TOFILE(QTEMP/TESTFILE)
QSH CMD(This is a Test Data')
DLTOVR FILE(STDOUT)
DSPPFM QTEMP/TESTFILE
ENDPGM
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
How do I remove a flag or check no. or name when a user opens too many sessions?
Why we are not able to perform insert delete and update operation in Join logical file?
how can you check for a records existence without causing and i/o (chain/read)?
explain the use of dftwrt display keyword?
what is the difference between packed decimal and zoned decimal?
what does dfu program you to do on a record?
what does opcode post do ?
how to define global parameter in ile ?
what are various techniques to pass parameters from one program to another?
What is the difference between iter and do? We know both are used to execute set of statements repeatedly, but what is the main difference?
how will you display a particular page in subfile ?
how to read database records without locking them?
What is the difference between crtdupobj and copyf?
The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...
WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)