Transfer completed (data was truncated)



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Transfer completed (data was truncated)

Postby stewchicken » Tue Jul 08, 2008 8:58 pm

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
stewchicken
 
Posts: 8
Joined: Mon Jun 30, 2008 8:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Transfer completed (data was truncated)

Postby MrSpock » Tue Jul 08, 2008 9:09 pm

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.
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Transfer completed (data was truncated)

Postby stewchicken » Tue Jul 08, 2008 9:20 pm

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
stewchicken
 
Posts: 8
Joined: Mon Jun 30, 2008 8:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Transfer completed (data was truncated)

Postby dick scherrer » Tue Jul 08, 2008 9:46 pm

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. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Transfer completed (data was truncated)

Postby stewchicken » Wed Jul 09, 2008 4:52 pm

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
stewchicken
 
Posts: 8
Joined: Mon Jun 30, 2008 8:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Transfer completed (data was truncated)

Postby dick scherrer » Thu Jul 10, 2008 12:10 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post