Write Excel Data in Abinitio or Write Excel Flow in Abinitio

Watch the explanation on how to write excel data in Abinitio


Class notes:


DML :
utf8 record=
begin
string(‘\t’) sheet;
string(‘\0’) line;
end 


Create Data

num_records=2
out.sheet::if(index==0) 'customer' else 'revenue';
out.line:: if(index==0) 'customerid\tzip\taddress' else 'revenueID\trevenueAmt\trevenueDate'


Customer Reformat

out.sheet::'customer';
out.line::"'"+ "\t" + in.customerid 
            + "\t" + in.zip
+ "\t" + in.address + "'";
Revenue Reformat

out.sheet::'Revenue';
out.line::"'"+ "\t" + in.revenueID 
            + "\t" + in.revenueAmt
+ "\t" + in.revenueDate + "'";  


Parameters:
xls:$AI_SERIAL/excels/relationsheep.xls
write-mode:newworkbook/apend-records
utf8:True
date-format:yyyy-mm-dd
autosizelumn:True
record-delimiter:\0
use-format:True
format-attribute:BLD,NUM
format-attribute-error:True


Important Concepts:
Data Must be sorted on filename before sending to Write Excel Flow component


Write Excel Flow

For Batch use Write Multiple Files

For Continuous use Publish Multiple Files


For more Abinitio and AWS and Data Engineering Videos , please browse , like , subscribe my below youtube channel;



Comments

Popular posts from this blog

Abinitio Interview Question # 1 - Write Multiple Files in Abinitio

Next In Sequence in ABinitio | How next_in_sequence() works in MFS