truncating varchar field

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Mallayagari
Participant
Posts: 15
Joined: Tue Apr 20, 2004 3:10 am

truncating varchar field

Post by Mallayagari »

Hi
I am writing a large varcharfield(2000) to a sequential file(fixed widh) but its truncating the value and writing. Is there any limitation on varchar field or fixed width file??


Thanks in advance
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

What do you mean its truncating? Is it truncating the data (can you confirm by doing a head at the unix level) or truncating the length? If you want to honor the length then specify the field as char.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

There are no limitation as far as i know and if there is such a thing its not 2000 definetly.

Post an example how you feel the data is getting truncated
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Varchar and fixed width?

There must be some place where you fix the length in output.
novneet
Participant
Posts: 28
Joined: Tue Jan 17, 2006 2:19 pm
Location: PUNE(INDIA)

Size in the target

Post by novneet »

Is there any field size you have defined in the target sequential file?
If No, then it takes the default size of the varchar as 1024.
Regards,
Novneet Jain
Sreedhar
Participant
Posts: 187
Joined: Mon Oct 30, 2006 12:16 am

Post by Sreedhar »

As per your question about the limit of varchar is concern it can handle up to 32,672 characters in length.

Do check what you have given in the target.

Also check what is the display value you have given in the metadata of the source.

These two check should help you to resolve the prob.

Do let us know your finding, which would help the entire dsxchange group.
Regards,
Shree
785-816-0728
Post Reply