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

Can you use multi format LF in CL program?

2 Answers  


What is the difference between physical file and logical file?

0 Answers  


how you get the relative record in a subfile in which cursor is located?

0 Answers   IBM,


load all subfile logic in sqlrpgle and when updating particular record it must be lock form other jobs (not a file)?

1 Answers   Wipro,


Hello friends, i am new to AS/400. Can any one help me in AS/400 i meant say can you send me some FAQS and interview questions.

7 Answers   HanceInc, IBM,


how to toggle between single line and multi - line display of a particular record in a subfile?

1 Answers   IBM,


We have seen no of parameter list but If we mention like this 'CALL PROGNAME PLIST ' how to know No of parameter name of program ?

2 Answers   IBM,


what does the opcode free do?

1 Answers   IBM,


how can I start a page in a new window?

0 Answers   IBM,


How to see all record formats used in a file?

1 Answers  


what is the purpose of dynslt keyword?

1 Answers   IBM,


what are dds required for subfile?

0 Answers   IBM,


Categories