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 can we update a specific field in RPG?

0 Answers  


How many MONMSG commands can declare in a CL program?

3 Answers  


how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.

1 Answers   iGate,


What is library is as400? What are the types of library?

1 Answers  


how to get the cursor position?

0 Answers   IBM,






Hello friends, i am having 1 year experience in AS/400. Can any one send me the as400 interview questions to my email id:nagaraju20087@gmail.com

1 Answers  


how to toggle between single line and multi - line display of a particular record in a subfile?

1 Answers   IBM,


define subsystem?

1 Answers   IBM,


can we use ASCII ,CDUP,SENDPASV commands in SFTP?

0 Answers  


define the rcvf command?

1 Answers   IBM,


what are activation group and what are its types.?

2 Answers   IBM,


How do you read a subfile record which is in output mode?

3 Answers  


Categories