Read Excel Data in Abinitio | Read Excel Spreadsheet
View the explanation for the Read Excel Data in AbInitio.
a. READ EXCEL SPREADSHEET
.xls,.xlsx,.xlsm
Parameters
xls : $AI_SERIAL/abc.xls
sheet_selection :by index/by_name/all
sheet_index:2
sheet_header_row:1
sheet_name:
utf-8:True
record_delimiter:\0
java_home:$AB_JAVA_HOME
skip-empty-rows:True
last_row:
last_column:
date_fromat:YYYY-MM-DD H24:MI:SS:NNN
java-options:
record
string(‘\t’) sheet;
string(‘\t') customer_id;
string(‘\t') revenue_date;
string(‘\t') revenue_amt;
string(‘\t') business_unit;
string(‘\t') isin;
string(‘\t') sedol;
string(‘\t') account_id;
string(‘\0') rest_of_line;
end;
Reformat:
include '~$AB_COMPONETS/Interchange/Excel/excel_to_dml_date.xfr
out::reformat(in)=
begin
out.*::in.*;
out.revenue_date::excel_to_dml_date(in.revenue_date);
out.revenue_amt::(decimal("\t"))in.revenue_amt;
end;
How to create Output Record Format:
a. Manually
b. use generate TAB
c. Use excel_gendml.ksh in built Utility
b. Read Excel Flow
Why ?
Parameters ?
Converting Excel Date and Datetime?
Watch my youtube channel below for more Abinitio, AWS and data engineering concepts
Comments
Post a Comment