XML Output- Aborting because of large number of records

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
PRIYARAJ
Participant
Posts: 41
Joined: Fri Jan 18, 2008 10:23 am

XML Output- Aborting because of large number of records

Post by PRIYARAJ »

Hi,


When I write the data to Sequential file ,it runs without aborting. But when I try to write that to XML Output,the job aborts with error message no enough memory. The total record count is 1822963. So I want to split and write to XML output stage?CFfStage->Transformer->Xml Output(2). I think we can do it with limiting the row count to 1st(1-911481 records) & 2 nd(911482-1822963) file. I think we can do it with INROWNUM but I have not used that & don't know the sytax.

Can anyone help on how to proceed with this?

Thanks in Advance !!!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There's an option to use a Trigger Column in the XML Output stage, when the value in that column changes the stage closes the current file and opens a new output file.
Last edited by chulett on Thu Mar 04, 2010 3:15 pm, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
PRIYARAJ
Participant
Posts: 41
Joined: Fri Jan 18, 2008 10:23 am

Post by PRIYARAJ »

I see the Triggers in Transformer stage but I have no idea what to perform on that?

Can you please tell in detail what should I give there?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

OK, edited my post to be more specific as to the stage I was referencing.
-craig

"You can never have too many knives" -- Logan Nine Fingers
PRIYARAJ
Participant
Posts: 41
Joined: Fri Jan 18, 2008 10:23 am

Post by PRIYARAJ »

I tried that but dint work because in there I have to select a column to trigger.Every field has different records & it is not pssible to do like that in my job.

Instead I tried @INROWNUM function in transformer stage.

I gave as constraint for first file as @INROWNUM < 400000 & for second link I gave as @INROWNUM >= 400000 .

Still,it is trying to insert more than 400000 records to first file. I am not sure where I am going wrong.
ArjunK
Participant
Posts: 30
Joined: Sun Apr 30, 2006 6:32 pm

Post by ArjunK »

Try setting up a counter within the Transformer stage which changes its value i.e it gets incremented when the "Threshold" is reached. This Threshold can be set as a parameter that can be changed on need basis. Then use the Counter as the Trigger Column in the XML Output stage.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Exactly, this field does not need to be anything in your XML so can exist just for this purpose. Make sure it gets incremented properly, say once every 400000 records in you case.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply