what are the parameters required for calling ls & get
command(SFTP COMMANDS) from cl progtram....
I want to transfer files(using GET COMMAND) that are
retrieved by LS command ...FROM 1 SYSTEM TO ANOTHER...
STEP 1:LS-list all files...from remote system
STEP 2:GET-actually transfer the files(listed in step 1)
from remote system to local system & get stored in some
Physical file....Plz reply in detail...Thanx

Answer Posted / ankur jain

Step 1: use command DIR to list all the files at remote
system.
Step 2: use command GET to get the required file from
remote system to your system.


FTP IP-ADDRESS(REMOTE SYSTEM)
DIR
GET remotefile yourfile (replace
QUITE

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

849


what are the important factors in error message subfile ?

744


What is the difference between iter and do? We know both are used to execute set of statements repeatedly, but what is the main difference?

754


what does opcode post do ?

1385


when do you use f-spec. Continuation line ?

1287


Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?

846


what is *inzsr used for?

1910


how can you check for a records existence without causing and i/o (chain/read)?

1667


How to debug a batch job when it is in messagewait(mswg) status. I know the steps for batch ebugging, but im confusing with when we submit any job for batch debug we put in held state. So here also do same thing or any other way?

922


how many types of display are available on as/400 for user interaction?

854


How can we change the uppercase to Lowercase in RPG?

1105


how do you read changed records backward in subfile?

810


how can I start a page in a new window?

968


how can u check no of records in a file?

867


how can you detect overflow for a print program that prints multiple lines per cycle?

1296