AS400 – FTP (put & get) files size compare.

45 pts.
Tags:
AS/400 FTP
CL Program
FTP Script
Unix Servers
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following