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

what are the important factors in error message subfile ?

0 Answers   IBM,


define a output queue?

1 Answers   IBM,


what is *iso date format?

0 Answers   IBM,


Please give me the code for A=A+1 in cl program?

2 Answers  


Q. 1.What are the in build functions in CL program and what are uses of thes in build functions? 2.How we can create own command in CL program? 3.What is use of STRSRVJOB?

3 Answers   CTS,


How do you read a subfile record which is in output mode?

3 Answers  


can I copy content of Physican file in some source Member of type TXT? Thanx..

1 Answers  


Define an Interactive Job?

1 Answers  


Hi All, Can any one give me a suggestion for below prob One job is in MSGW due to decimal dara error and I find out stmt error and Value in DMUP. but my file has millions of records.So how can i find out on which record the error was occured....?

3 Answers  


define what a data queue is along with a brief example of what it may be used for?

1 Answers   IBM,


What is array in as400? What are the types of array?

0 Answers  


How to convert a spool file to PDF file in AS400?

0 Answers  


Categories