45 pts.
 AS400 – FTP (put & get) files size compare.
Hi, i have created a ftp scritp to put & get (back trasferred file) then compare them using CL program. ie: FTP Script PUT FROM_LIBRARY/FROM_FILE TO_LIBRARY/TO_FILE GET FROM_LIBRARY/FROM_FILE QTEMP/TO_FILE CL pgm 1) RTVMBRD FILE(FROM_LIBRARY/FROM_FILE) NBRCURRCD(&NBRCURRCD) DTASPCSIZ(&DTASPCSIZ) 2) RTVMBRD FILE(QTEMP/TO_FILE) NBRCURRCD(&NBRCURRC2) DTASPCSIZ(&DTASPCSI2) 3) Compare results I FTP'ed to UNIX SERVER and in some cases #of records & file size match and in some case the #of records match but not the file size. Any idea what's i wrong in my logic? Many Thanks Hector

Software/Hardware used:
ASKED: July 31, 2009  10:31 PM
UPDATED: August 3, 2009  2:40 PM

Answer Wiki:
If the Get is creating the toFile it may not be creating it with the same numeric types/sizes. Check the DSPFFD. The Put file might have deleted records which will not show up on record counts but will take space If the Get is creating the toFile it wouldn't have the keys of the FromFile - that takes space. I'm sure smarter minds will add to this list. When I did it, I only compared record count. Phil
Last Wiki Answer Submitted:  August 1, 2009  10:32 pm  by  philpl1jb   44,070 pts.
All Answer Wiki Contributors:  philpl1jb   44,070 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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