Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 do I remove a flag or check no. or name when a user opens too many sessions?

2208


Why we are not able to perform insert delete and update operation in Join logical file?

1468


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

2096


explain the use of dftwrt display keyword?

1768


what is the difference between packed decimal and zoned decimal?

3247


what does dfu program you to do on a record?

1229


what does opcode post do ?

1778


how to define global parameter in ile ?

1192


what are various techniques to pass parameters from one program to another?

1863


What is the difference between iter and do? We know both are used to execute set of statements repeatedly, but what is the main difference?

1027


how will you display a particular page in subfile ?

1696


how to read database records without locking them?

1848


What is the difference between crtdupobj and copyf?

1202


The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...

2367


WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)

2169