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 / 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 |
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?
how do you read changed records backward in subfile?
what are the limitations of cl (compare to rpg) ?
what is the purpose of putovr (put with explicit override) keyword?
How to convert a spool file to PDF file in AS400?
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?
Difference Between Interactive & Batch Job?
list some of the commonly used commands for debugging?
how to develop some simple graphs (bar charts) using just html?
what is sessional error or divice error in rpg IV?..when will it happens...Give few examples?
how many files can be defined in f specs?
different type of cursor?