ITETL0001
ITETL0001
ITETL0001
ITETL0001
Process and ETL Toolkit
TOOLKIT – Part 1
Dell Confidential
ETL
2
Application of Ab Initio
3
GDE and Co-Operating System
• GDE (1.13.7)
• Co-Operation System (2.13)
Sun Solaris Red Hat Linux
4
Databases
• Oracle
• Sybase
• Teradata
• MS SQL Server 7
5
Co-Operating System Services
6
Lab 1: Setting up Linux directories
cd /usr/dell/abinitio/training
mkdir your_name
cd your_name
mkdir lab1
7
Lab 1: Logon via GDE
• host=abidev01
• host_directory=/usr/dell/abinitio/training/your_name
• location=/usr/dell/abinitio/abinitio
8
Lab 1: Create an Empty Sandbox
9
Lab 1: Collection Files
birth_day
• customer_detail.dat
cust_number
cust_address
cust_zip
address_type
10
Lab 1: Edit Sandbox
Define AI_SERIAL_OUT_DATA=/serial/data/ddw/serial/training
Define COLL_HOME=/usr/dell/abinitio/training/collection
$AI_RUN – run directory usually contains deployed shells
$AI_MP – graphs
11
Lab 1: Transform Requirements
3. The resulting final file should left outer join customer header
and customer detail.
5. The resulting final file should have all the columns from header
and detail.
12
Lab 1: DML for Customer Header
record
end;
13
Lab 1: DML for Customer Detail
record
string(1) newline;
end;
• Add a reformat for customer header having the output with date
as YYYYMMDD
OUTPUT DML:
record
end;
16
Lab 1: Join
• Do a left outer join on customer number for the header and detail records.
The final file should have all the records from header and detail:
record
string("~|") cust_number = NULL("");
string("~|") cust_name = NULL("");
string("~|") date_of_birth = NULL("");
string("~|") cust_address = NULL("");
string("~|") cust_zip = NULL("");
string("~|") address_type = NULL("");
string(1) newline;
end;
17
Lab 1: More Thoughts on Join
18
Lab 1: Loading in TD
NO AFTER JOURNAL
(
CUST_NUMBER INTEGER NOT NULL,
CUST_NAME VARCHAR(18) CHARACTER SET LATIN NOT CASESPECIFIC,
)
PRIMARY INDEX XNUP_lab1_your_name ( cust_number );
19
Lab 1: Loading in TD
UTILITIES:
• TD_DML_GENERATOR: generates the Ab Initio DML for a Teradata table. Copy the
utility from /usr/dell/abinitio/training/utils/td_dml_generator.ksh into your local utils
directory.
• Getpasswd: Returns the password for the oracle username for a particular instance.
The configuration management has to add the entry of the username and you need
to have permissions to access the password.
20
Lab 1: Loading in TD
To access TD we use our own Ab Initio components. In order to use them we need to add
the folder to the component organizer of GDE.
21
Lab 1: Loading in TD
22
Lab 1: Order of parameter evaluation
23