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 to pick up the changed records every time in a subfile after the first change made ?

1 Answers   IBM,


Write a CL program which will run a batch job at 1 am every night

0 Answers  


How to reverse a string using RPG?

0 Answers  


what is default data type for the fields(sub fields) defined in data structures in rpg?

2 Answers   IBM,


What Is Ddm ?

1 Answers  






name few ibm supplied libraries?

2 Answers   IBM,


what is the use of data structures?

0 Answers   IBM,


at what level s,o are defined and what they will do?

1 Answers   IBM,


Can we debug the MSGW JOBS?

0 Answers  


What are the different opcodes used for file operation on a subfile in a rpg pgm?

1 Answers   IBM,


define the purpose of the *cat function?

1 Answers   IBM,


How do I release jobs in queue and change a job destination to a different printer. I know wrkjobq but I have not worked with As/400 for a while,so_can someone help me?

2 Answers  


Categories