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 to develop some simple graphs (bar charts) using just html?

0 Answers   IBM,


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

1 Answers  


diffrence between rename and prefix

2 Answers  


How can you check the existence of object in a system?

1 Answers  


what does exfmt does?

1 Answers   IBM,






What is the maximum number of key fields allowed defining in a physical file?

1 Answers  


Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)

0 Answers   TCS,


What are the types of Signature validation?

1 Answers  


what is pointer error in rpg IV?

4 Answers   CTS,


What is the purpose of SFLFOLD and SFLDROP keywords?

1 Answers  


I have a display file with mandatory fields. Is there anyway that i can highlight those fields to bring attention to the user? The same behavior that AS400 makes when we attempt to execute a command without completing all the required parameters. Note: I have used DSPATR(HI) or DPSATR(RI) and they have different behaviors. Thanks.

2 Answers  


What is the purpose of USROPN keyword?

1 Answers   CTS,


Categories