AS400 - FTP (put & get) files size compare.
10 pts.
0
Q:
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
ASKED: Jul 31 2009  10:31 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
24610 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
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 Answered: Aug 1 2009  10:32 PM GMT by Philpl1jb   24610 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0