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

what is procedure prototype and procedure interface.

0 Answers   IBM,


what is the difference between *like and *namvar ?

1 Answers   IBM,


How can we sort an array?

1 Answers  


distinguish between terminating a program through seton lr and return?

0 Answers   IBM,


what is maximum number of arrays allowed in rpg?

1 Answers   IBM,






write the SQL statement to retrieve the 2nd Highest salary ammount(File Name="EMPLOY",Field Name="SALARY")

6 Answers   Bally Technologies, Cognizant, Vertex,


how do you use exceptional write in c specs?

1 Answers   IBM,


what is *iso date format?

0 Answers   IBM,


name few ibm supplied libraries?

2 Answers   IBM,


What Is The Error If We Don't Get Login Screen?

0 Answers   IBM,


i have recently moved to hyd. i would like to know which is the best institue to learn AS400. are there any in ameerpet? thanks.

4 Answers  


What is Spool file, Why is it required?

1 Answers  


Categories