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?



How can I automate sftp commands(ls & get) in CL program.. If I want to write two scripts one f..

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

Post New Answer

More IBM AS400 AllOther Interview Questions

How do you check object lock

0 Answers  


What is the purpose of PR and PI in calling program and called program? in Called program PR is compulsory?

1 Answers   HCL,


Difference Between Interactive & Batch Job?

0 Answers   IBM,


What is the difference between crtdupobj and copyf?

0 Answers  


how can you check for a records existence without causing and i/o (chain/read)?

1 Answers   IBM,


what is difference between accespath and datapath? what is the difference between accespath and open datapath?

2 Answers  


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?

1 Answers   IBM,


how can we run a batch job?

0 Answers   IBM,


what is the maximum number of parameters allowed in clp?

2 Answers   IBM,


Difference Between Skip Before & Space Before?

0 Answers   IBM,


what is the purpose of dynslt keyword?

1 Answers   IBM,


Categories