Write Excel Data in Abinitio |Write Excel Flow in abinitio | How to writ...
Watch my YouTube video for explanation :
Please look into the class notes here for your references:
Write Excel files
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 Concents:
Data Must be sorted on filename before sending to Write Excel Flow component
Write Excel Flow
For Batch use Write Multiple Files
For Continous use Publish Multiple Files
Fore more Abinitio, AWS and data engineering videos please subscribe , view , like and share my YouTube channel
Click DataPundit
Comments
Post a Comment