10 pts.
 Retrieve remote directory listing via QSH

Hello,

I have a CL function which sends a .ZIP file to our client via SFTP.I have retrieved the size of the .ZIP from our IFS by using QSH to 'ls -l' the details and redirect this output to a data area from which I can extract the size.

I now need to retrieve the size of the same file from our client (as part of our customer SLA) by using SFTP or QSH to ensure that the transfer completed successfully by comparing the file sizes.

Any help/examples will be very gratefully received.

Thankyou :-)



Software/Hardware used:
iseries
ASKED: August 2, 2012  5:08 PM
  Help
 Approved Answer - Chosen by Miffo1701 (Question Asker)

Assuming you mean "sftp", the sftp ls command can be used after you put the file. You should be able to retrieve the file size from the output of ls.
 
Tom

ANSWERED:  Aug 2, 2012  10:04 PM (GMT)  by Miffo1701

 
Other Answers:
Last Wiki Answer Submitted:  August 2, 2012  5:08 pm  by  Miffo1701   10 pts.
Latest Answer Wiki Contributors: 
To see other answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _