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