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 does the runqry show the output?
what is procedure prototype and procedure interface.
Difference Between Interactive & Batch Job?
describe the difference between the dowxx and douxx operations?
what the purpose of ovrdta, ovrata keywords?
What is difference between rename and prefix?
what is the difference between *like and *namvar ?
all i need to know about cmpseqdat parameter in cmppfm, how it works and can we retrieve line sequence and date from the output?
how to write code for singlepage in sqlrpgle with update ?
how can I give more performance to some selected pages?
what is rpg fixed logic cycle?
Hello, I have created a CMD type object. In one of the fields in Display file , I would like to see All the Source files present by pass the name of Library. Tried using CHoice(Keyword) and Choicepgm on PARM , but doesn't seems to be working. Any help please..
what is overlay?
what is a keyed physical file?
what is subfile?