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


Please Help Members By Posting Answers For Below Questions

how many specifications are there in rpg/400? What are they?

1099


define a output queue?

943


To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?

798


describe the difference between the dowxx and douxx operations?

1184


What is binder language ?

1367






WHAT IS FERERENTIAL INTRIGRITY ?

1112


how to validate input values in display file ?

671


What is the difference between crtdupobj and copyf?

687


what is the purpose of the indara keyword?

1134


define what a data queue is along with a brief example of what it may be used for?

1077


what does opcode post do ?

1102


in conjunction with which statements can orxx and andxx conditions be used ?

1145


what is the necessary keyword for non-join logical file?

1177


what are indicators?

640


what is *inzsr used for?

1484