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

1) Can we declare a Display file in CL? 2) How many no. of files can be declared in a CL? 3) What is Non-Join Logical file and its importance?

4 Answers   Cognizant,


how do you read changed records backward in subfile?

0 Answers   IBM,


what are the limitations of cl (compare to rpg) ?

1 Answers   IBM,


what is the purpose of putovr (put with explicit override) keyword?

1 Answers   IBM,


How to convert a spool file to PDF file in AS400?

0 Answers  


i have one physical file which is having two logical files. logical a have unique keyword and logical b doesnt have a unique keyword. can i give duplicate values while updating through physical file. if no why?

4 Answers   IBM,


Difference Between Interactive & Batch Job?

0 Answers   IBM,


list some of the commonly used commands for debugging?

1 Answers   IBM,


how to develop some simple graphs (bar charts) using just html?

0 Answers   IBM,


what is sessional error or divice error in rpg IV?..when will it happens...Give few examples?

3 Answers   CTS,


how many files can be defined in f specs?

2 Answers   IBM,


different type of cursor?

0 Answers   IBM,


Categories