Page 1 of 1
Transfer completed (data was truncated)
Posted:
Tue Jul 08, 2008 8:58 pm
by stewchicken
I am trying to ftp a flat file into host which is alread alloated in host
ftp> put a.txt 'ID14567.TEST.SAGAG.INPUT'
227 Entering Passive Mode (10,226,0,16,15,182)
125 Storing data set 'ID14567.TEST.SAGAG.INPUT'
250 Transfer completed (data was truncated)
ftp: 4328 bytes sent in 1.02Seconds 4.16Kbytes/sec.
ftp>
Could anyone give me some hints? ,my my transferred flat file is truncated?
due to size of flat file or due to width of flatfile?
Thanks and Rgds
Re: Transfer completed (data was truncated)
Posted:
Tue Jul 08, 2008 9:09 pm
by MrSpock
You've got a record in a.txt that's longer than the LRECL of the dataset you've pre-allocted.
Just for fun, you might want to transmit a.txt to a FB dataset with an LRECL longer than the total byte count of 4328.
Re: Transfer completed (data was truncated)
Posted:
Tue Jul 08, 2008 9:20 pm
by stewchicken
Thanks for your hints. I already increase LRECL of dataset pre-alloated as same width as a.txt
but i still get (data was truncated) error.
doest it means the size of a.txt is bigger than dataset pre-allocated in this case?
Thanks & Rgds
Re: Transfer completed (data was truncated)
Posted:
Tue Jul 08, 2008 9:46 pm
by dick scherrer
Hello,
I already increase LRECL of dataset pre-alloated as same width as a.txt
Make the lrecl
longer than the width of a.txt. . .
Re: Transfer completed (data was truncated)
Posted:
Wed Jul 09, 2008 4:52 pm
by stewchicken
Hey dick scherrer,
Thanks for your hints. I tried to allocate dataset with below setting. but i got Invalid record length error .
Data Set Name . . . : ID14567.TEST.SAGAG.INPUT
Average record unit (M, K, or U)
Primary quantity . . 6 (In above units)
Secondary quantity 2 (In above units)
Directory blocks . . 0 (Zero for sequential data set) *
Record format . . . . FB
Record length . . . . 150
Block size . . . . . 10000 (Blank for optimal blocksize)
Data set name type (LIBRARY, HFS, PDS, LARGE, BASIC, *
F1=Dir F2=Split F3=Exit F4=debug F7=Backward F8=Forward
Re: Transfer completed (data was truncated)
Posted:
Thu Jul 10, 2008 12:10 am
by dick scherrer
Hello,
How did you choose lrecl 150?
When you specify FB (fixed block), the block size must be an exact multiple of lrecl. 10000 / 150 is invalid by definition.
For a test, you might try a longer lrecl (say 500). We can improve on the blksize later if needed. It is important to make sure your lrecl will hold an entire record from the upload file.