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 |
How can u create a temporary file in CLP @ how to access that temporary file in RPG program?
What is the function of DSPATR (display attributes) keyword?
is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?
In which specification can a report layout be defined ?
Q. Soppose one job is running in a batch mode for long time now i want to kill(end)this batch job.How you will achive this?
1) Suppose we call a pgm from CL, how come AS400 system knows whether the called pgm is to be interactive one or batch one? 2)How many members can exist in a PF?
define the purpose of the leave operation?
What is the symbol used for copying & moving new field in SDA?
how to handle job errors in as400 what is the command and where can we find out whether the job has any errors
How can we read file using curser? how to define a curser?
How many MONMSG commands can declare in a CL program?
Can we use OVRDBF command without using of OPNQRYF ? Or can we use OPNQRYF command without using of OVRDBF command ?