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



I want to run ls *.csv (sftp command) from CL Program... Can u plz tell me when SFTP command will ..

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

I want to run ls *.csv (sftp command) from CL Program... Can u plz tell me when SFTP command will ..

Answer / syam

SFTP is Interactive command you can't use in CL program
Use STRTCPFTP command

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More IBM AS400 AllOther Interview Questions

how you will know whether you are in sfldrop or sflfold mode?

0 Answers   IBM,


What is the difference between array and a multiple occurrence data structure?

1 Answers  


is it possible to create a physical file without dds?

1 Answers   IBM,


how will you search an array?

0 Answers   IBM,


When will you use OPEN and CLOSE opcodes in RPG program?

1 Answers  






What is journaling & Commitment Control?

1 Answers  


What is the purpose of FRCDTA (Force Data) keyword?

1 Answers  


what opcode will be used to test the zone of a character field?

1 Answers   IBM,


i have recently moved to hyd. i would like to know which is the best institue to learn AS400. are there any in ameerpet? thanks.

4 Answers  


if we tried to move year part of *iso date into a field of length 3, what will happen ?

0 Answers   IBM,


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?

3 Answers   IBM,


what is RCLRSC?

2 Answers  


Categories