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 Posted / 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 View All Answers
What is %CHECK?
In 'o' Specs What Is The Opcode For Write?
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .
Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?
what is scan and xlate?
i am using non join multiple format my 3 database file is like that pf97 R REC ENAME ETENNO ESTATUS K ENAME pf98 R REC1 ENAME ESAL K ENAME PF99 R REC3 ENAME CRDCARD EID K EID & MY NON JOIN LOGICAL FILE IS ALSO SAME EXCEPT RECORD NAMES BEFORE I TRIED WITH 2 FILES SO ITS SAYS ERROR I.E.(Key field attributes must be same as for previous formats. ) SO I CHANGED KEYFIELD ACCORDING TO PF SO ITS WORKING BUT AFTER ADDING 3 FILES ITS SAYING SAME ERROR . I DONT KNOW I NEW IN AS400 PLLZ HELP ME I HAVE ONE MORE QUE. CANT BE USE DIFFERENT KEYFIELD (NOT ACCORDING TO PF) IN NON JOIN LOGICAL FILE.
How can we arrange duplicate records in a file?
Why we are not able to perform insert delete and update operation in Join logical file?
how can I control the way a remote browser uses its cache?
what is the maximum number of record formats in dspf?
what is the purpose of overrides?
how can you detect and handle a record lock situation?
when is a tag statement used in rpg?
what are the uses of factor1, factor2 and result field for the rpg operation code parm?
what are the different types of variables available in cl?