I want to run ls *.csv (sftp command) from CL Program...
Can u plz tell me when SFTP command will start running?
i.e.which command should I use in CL Program to run ls
command?
Answers were Sorted based on User's Feedback
Answer / syam
Hi Patel
You can use SFTP thru Qshell
PGM
QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt
serverUserID@server')
ENDPGM
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / syam
SFTP is Interactive command you can't use in CL program
Use STRTCPFTP command
| Is This Answer Correct ? | 0 Yes | 2 No |
What is an Array Data Structure?
Describe the function of SETGT operation in RPG language?
Is it possible to add an keyfield or field to an Physical file without changing its file identifier. Example : - Say I have an existing physical file which is being used in 5 programs. Now I want to add an additional Keyfield or an field to it and I don't want to recompile the programs.
Q.Suppose one job is running in a batch mode for a long time now i want to kill this batch job. how you achive this?
Can you use multi format LF in CL program?
What is the purpose of the following C/COPY QRPGSRC, ORDERR
How to reverse the string in rpg
what is a composite key?
how can a procedure will be added in to a srvpgm
What is the use of Header Specification in RPG/400?
what is maximum number of arrays allowed in rpg?
What is the purpose of the following? FORDHDR1 IF E K DISK ORDHDRF KRENAMEORDHDRF1