Trailer

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
ssreeni3
Participant
Posts: 29
Joined: Fri May 18, 2012 1:35 am

Trailer

Post by ssreeni3 »

Hi experts,

I have 10 textfiles.Each File has a Column_Total in its Trailer.Different columns are used to calculate for Column_Total in every file.How can we check the Column_Total in Datastage by a common job for all text files.

can anyone suggest regarding this?

Thanks in Advance,
sri
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

This would only work if all your text files are of the same format; unless you want to store the schema of all the files and use that parameterized.

One simple method would be to use a transform stage variable to keep a running total, then when you read the trailer record (which you would need to somehow detect in the transform stage) you compare that value to the stage variable and if they are different you would take an error output link from that stage.
Post Reply