Read_fixedwidth()

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Read_fixedwidth()

Post by kollurianu »

Hi All,


Could some one please tell me what does this error indicate

Code: Select all

.duns_ipfile.Input: read_fixedwidth() - row 1, too many columns in record

Thank you all,
ds_developer
Premium Member
Premium Member
Posts: 224
Joined: Tue Sep 24, 2002 7:32 am
Location: Denver, CO USA

Post by ds_developer »

Without further details, I'd say:

1. you are reading in a fixed width sequential file.
2. you have fields defined that say add up to 100 bytes
3. the first record is being read in and there are more than 100 bytes before the line terminator

You have extra data in the record, so it tells you there are 'too many columns'.

John
kommven
Charter Member
Charter Member
Posts: 125
Joined: Mon Jul 12, 2004 12:37 pm

Post by kommven »

Anu,

Solution underlies with the fact how the line terminates...

The available 2 options you can specify are

CR/LF
binary

will be ASCII or EBCIDIC

knowing and specifying them will help or try combinations trail and error...

in your scenario I strongly believe that its binary deliminated...

Good luck,
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Can you view the file in Unix to confirm the length and layout? Did you obtain the file from other OS such as DOS or Win?
Post Reply