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
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...
how do you know that records are locked?
how does union file maintains record formats?
what are the different opcodes available in rpg for database access ?
How Many Specs Are There In Rpg & Which Are They?
what is the favicon.ico request that my site receives now and then?
What is the use of jdftval in as400?
what is a join logical file?
What Is The Error If We Don't Get Login Screen?
how do handle file exception/error?
what are dds required for subfile?
what is scan and xlate?
what are all the contents of subfile?
define data structure?
is there any way to dynamically merge other html scripts into a given html?