Too many columns in a Record

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
rafidwh
Participant
Posts: 179
Joined: Mon Oct 10, 2005 11:30 pm

Too many columns in a Record

Post by rafidwh »

Hi All,
I get flat files daily generated from COBOL extract,the job was running smoothly ,but yesterday in the prod the job is showing a lot of warnings like "Too many columns in a record".Due to this number of warnings they have stopped running the job and asking me to analyze.i am using a comma delimiter in the squential file stage.
it is looking strange to me that it has run smoothly before,but now it is showing this warnings.
Pl suggest me
Andal
Participant
Posts: 124
Joined: Thu Dec 02, 2004 6:24 am
Location: Bangalore, India

Post by Andal »

There may be problems with the file you have got yesterday. Check if there is any extra commas in the columns itself. And also check the line terminator settings of the Sequential file. It should be unix in your case.
Rgds
Anand
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

This can happen when string fields are not quoted and there is a comma (or whatever the delimiter of choice is) in the data for a field. Or fields.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rafidwh
Participant
Posts: 179
Joined: Mon Oct 10, 2005 11:30 pm

Post by rafidwh »

what will be the reason if I am geting the same warning"Too many columns in a record" ,when I am selecting "fixed width column". and not any delimeters
jzparad
Charter Member
Charter Member
Posts: 151
Joined: Thu Apr 01, 2004 9:37 pm

Post by jzparad »

There was a recent discussion about a similar problem.

If all your files look OK and the job used to run OK, check if the job has active stages in sequence and, if so, try placing an IPC between them.
Jim Paradies
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then your metadata is wrong. The Display Size of your fields don't add up to the actual length of the records.
-craig

"You can never have too many knives" -- Logan Nine Fingers
bmadhav
Charter Member
Charter Member
Posts: 50
Joined: Wed May 12, 2004 1:16 pm

Post by bmadhav »

Since u are reading COBOL output, u might be running into EBCDIC to ASCII conversion issues.
rafidwh
Participant
Posts: 179
Joined: Mon Oct 10, 2005 11:30 pm

Post by rafidwh »

But chullet,The problem is it is running well without any warnings for some files,but for the last file it gave warnings ,so is that the metadata issue?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then check the file that is giving you the error. There must be something different about it from the ones that run without error.

Since you say they are fixed width, then it should be easy to tell. Each record should always be X bytes in length, the sum of the Display Sizes defined on your Columns tab. The bad file should have records > X bytes long.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rafidwh
Participant
Posts: 179
Joined: Mon Oct 10, 2005 11:30 pm

Post by rafidwh »

chulet,
I have checked the cobol program it shows that the record lengths are fixed in the program as well,so there wont be any Byte changes in the extract,
I am surprised how does I got the warning messages in the previous file :roll:
.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Don't check the program, check the file!

DataStage isn't complaining about the program, it's complaining about the file.

What's the row length of the file? What is the total size of the file (use the wc command)? Is one an exact multiple of the other? If not there is at least one aberrant row in the file.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srinagesh
Participant
Posts: 125
Joined: Mon Jul 25, 2005 7:03 am

Post by srinagesh »

We got a similar error before and we checked the , in the Source file stage, "supress row truncation warnings" (in the format tab) and Make the "Incomplete column" (in the columns tab) (for each element of the row, except the last one) as "Retain"


Hope this helps

Nagesh
Post Reply