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 / 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 |
How do you check object lock
What is the purpose of PR and PI in calling program and called program? in Called program PR is compulsory?
Difference Between Interactive & Batch Job?
What is the difference between crtdupobj and copyf?
how can you check for a records existence without causing and i/o (chain/read)?
what is difference between accespath and datapath? what is the difference between accespath and open datapath?
What is the difference between keys of a Physical file and the keys of a logical file?
2 Answers Bank Of America, BoA,
in conjunction with what other keyword must ovrdta and ovrata be used?
how can we run a batch job?
what is the maximum number of parameters allowed in clp?
Difference Between Skip Before & Space Before?
what is the purpose of dynslt keyword?