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 does the runqry show the output?

885


what is procedure prototype and procedure interface.

621


Difference Between Interactive & Batch Job?

791


describe the difference between the dowxx and douxx operations?

1176


what the purpose of ovrdta, ovrata keywords?

1180






What is difference between rename and prefix?

582


what is the difference between *like and *namvar ?

1560


all i need to know about cmpseqdat parameter in cmppfm, how it works and can we retrieve line sequence and date from the output?

2415


how to write code for singlepage in sqlrpgle with update ?

2367


how can I give more performance to some selected pages?

615


what is rpg fixed logic cycle?

660


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..

1787


what is overlay?

685


what is a keyed physical file?

1005


what is subfile?

953