Documente Academic
Documente Profesional
Documente Cultură
Introduction to
Ab Initio
Prepared By : Ashok Chanda
Accenture Ab Initio Training 2
Ab initio Session 2
Ab initio Session 2
Building a simple graph
Building a simple graph
Accenture Ab Initio Training 3
Graphical Development
Environment GDE
Accenture Ab Initio Training 4
The Graph Model
The Graph Model
Accenture Ab Initio Training 5
The Graph Model: Naming the
The Graph Model: Naming the
Pieces
Pieces
Dataset
Datasets
Components
Flows
Accenture Ab Initio Training 6
Components
Components
Compress Components
Continuous Components
Database Components
Dataset Components
Departition Components
%T& Components
'iscellaneous Components
&artition Components
Sort Components
Transorm Components
Translate Components
(alidate Components
Accenture Ab Initio Training 8
atasets
atasets
6+le7
6+le7
m+le8599hostname9directory:9directory;<9+lenam
m+le8599hostname9directory:9directory;<9+lenam
e
e
Accenture Ab Initio Training 10
More on $%!s
More on $%!s
)rgument )nd Description
)rgument )nd Description
'+le5Speci+es a multi+le.
'+le5Speci+es a multi+le.
%or e>ample! you might ha/e a database o employees %or e>ample! you might ha/e a database o employees
where each record contains our +elds5 Si> characters or where each record contains our +elds5 Si> characters or
the employee?s +rst name! ollowed by ten characters or the employee?s +rst name! ollowed by ten characters or
the employee?s last name! ollowed by three characters or the employee?s last name! ollowed by three characters or
the employee?s age! and si> characters or the employee?s the employee?s age! and si> characters or the employee?s
date o hire. date o hire.
One employee?s record might look like this "where each One employee?s record might look like this "where each
s$uare represents one character! or byte in the record#5 s$uare represents one character! or byte in the record#5
2ou can enter or edit a record ormat using the 0ecord 2ou can enter or edit a record ormat using the 0ecord
%ormat 4ditor. %ormat 4ditor.
Accenture Ab Initio Training 14
Te't %ecord "ormat
Te't %ecord "ormat
%epresentation:
%epresentation:
record
record
decimal"@# idA
decimal"@# idA
string"B# +rstCnameA
string"B# +rstCnameA
string"B# lastCnameA
string"B# lastCnameA
date"D2222EDDE''D# new+eldA
date"D2222EDDE''D# new+eldA
endA
endA
Accenture Ab Initio Training 15
Specifying the %ecord
Specifying the %ecord
"ormat of a Port
"ormat of a Port
0ecord %ormat 4ditor
0ecord %ormat 4ditor
Accenture Ab Initio Training 16
Specifying the %ecord
Specifying the %ecord
"ormat of a Port
"ormat of a Port
2ou can assign a record ormat to a dataset component or 2ou can assign a record ormat to a dataset component or
program component by /iewing the component?s properties program component by /iewing the component?s properties
dialog! and speciying the record ormat on the &ortstab. dialog! and speciying the record ormat on the &ortstab.
Accenture Ab Initio Training 17
Specifying the %ecord
Specifying the %ecord
"ormat of a Port
"ormat of a Port
On this tab! you speciy the record ormat o a component On this tab! you speciy the record ormat o a component
port using one o the ollowing5 port using one o the ollowing5
) reerence to a +le containing a collection o type ) reerence to a +le containing a collection o type
speci+ers. speci+ers.
.sing a type speci+er other than .sing a type speci+er other than record record. )lthough this is . )lthough this is
not commonly done! it is perectly legal. %or e>ample! the not commonly done! it is perectly legal. %or e>ample! the
ollowing type speci+er indicates that the record ormat is ollowing type speci+er indicates that the record ormat is
simply a +/eEcharacter string5 string "G# simply a +/eEcharacter string5 string "G#
0ecord ormats are usually comprised o multiple +elds 0ecord ormats are usually comprised o multiple +elds
"called "called columns columns in a database table#. 2ou de+ne a +eld by in a database table#. 2ou de+ne a +eld by
using a keyword that represents a D'1 base or compound using a keyword that represents a D'1 base or compound
type! ollowed by additional inormation that the D'1 type type! ollowed by additional inormation that the D'1 type
needs "such as the siHe o the +eld#! and9or by optional needs "such as the siHe o the +eld#! and9or by optional
inormation. inormation.
Accenture Ab Initio Training 18
5ntrod+ction to M!
5ntrod+ction to M!
*n )b *nitio products! a
*n )b *nitio products! a
record
record
is a D'1
is a D'1
object that contains a se$uence o named
object that contains a se$uence o named
+elds "called
+elds "called
columns
columns
in a database table#!
in a database table#!
each o which can be a diferent D'1 base
each o which can be a diferent D'1 base
or compound type. 'ost record types are
or compound type. 'ost record types are
airly simple! containing only data +elds.
airly simple! containing only data +elds.
Accenture Ab Initio Training 21
To o C+es
To o C+es
Jhen you create a graph! you will see yellow highlights in certain areas. Jhen you create a graph! you will see yellow highlights in certain areas.
These ToEdo cues prompt you or additional inormation the KD4 needs These ToEdo cues prompt you or additional inormation the KD4 needs
beore it can run the graph! as ollows5 beore it can run the graph! as ollows5
LL LL 5Jhen a layout indicator is colored yellow! 5Jhen a layout indicator is colored yellow! the component has no the component has no
layout. %or program components! layout is set either by propagation or layout. %or program components! layout is set either by propagation or
manually. DoubleEclick the layout indicator and select the desired layout. manually. DoubleEclick the layout indicator and select the desired layout.
Jhen a component has a s$uare yellow bo>! its re$uired parameters lack Jhen a component has a s$uare yellow bo>! its re$uired parameters lack
/alues. DoubleEclick the s$uare bo> and +ll in the missing parameters. /alues. DoubleEclick the s$uare bo> and +ll in the missing parameters.
outM outM 5Jhen the name o a port is accented with yellow! the record ormat 5Jhen the name o a port is accented with yellow! the record ormat
or the port is not set. 0ecord ormats are usually propagated! but are or the port is not set. 0ecord ormats are usually propagated! but are
sometimes set manually. Connect the port to another port with known sometimes set manually. Connect the port to another port with known
record ormat! or doubleEclick the port and add the new record ormat. record ormat! or doubleEclick the port and add the new record ormat.
Jhen a port is highlighted with yellow! the port needs at least one Now. Jhen a port is highlighted with yellow! the port needs at least one Now.
Connect one or more Nows to the port. Connect one or more Nows to the port.
Accenture Ab Initio Training 22
More To o C+es
More To o C+es
%iles normally start in an .nopened state! %iles normally start in an .nopened state!
progress to Open! and end in a Closed state. progress to Open! and end in a Closed state.
Components! Nows! and graphs normally begin in Components! Nows! and graphs normally begin in
an .nstarted state! progress to 0un! and end in a an .nstarted state! progress to 0un! and end in a
Done state. Jhen abnormal e/ents occur! Done state. Jhen abnormal e/ents occur!
components change to an 4rror or %ailed state. components change to an 4rror or %ailed state.
* you let your mouse pointer ho/er o/er a red * you let your mouse pointer ho/er o/er a red
status indicator! the KD4 displays the error status indicator! the KD4 displays the error
message associated with the ailure. * you message associated with the ailure. * you
doubleEclick the red status indicator! the doubleEclick the red status indicator! the
)pplication Oob Output Jindow opens with the )pplication Oob Output Jindow opens with the
complete error message in it. complete error message in it.
Accenture Ab Initio Training 26
"ilter by &'pression
"ilter by &'pression
%or each record on the input port the PselectCe>pr3 %or each record on the input port the PselectCe>pr3
parameter is e/aluated. * PselectCe>pr3 e/aluates parameter is e/aluated. * PselectCe>pr3 e/aluates
true "nonEHero#! the input record is written to the true "nonEHero#! the input record is written to the
Pout3 port e>actly as the input was read. Pout3 port e>actly as the input was read.
* the PselectCe>pr3 e/aluates alse "Hero#! the * the PselectCe>pr3 e/aluates alse "Hero#! the
record is written to the Pdeselect3 port. record is written to the Pdeselect3 port.
The Pout3 port must be connected downstream! The Pout3 port must be connected downstream!
those records meeting the PselectCe>pr3 criteria those records meeting the PselectCe>pr3 criteria
The Pdeselect3 output may be optionally used The Pdeselect3 output may be optionally used
Accenture Ab Initio Training 28
"ilter ata
"ilter ata
1. Push Run button.
2. !ie" #onitoring in$or#ation.
3. !ie" out%ut &ata.
Accenture Ab Initio Training 29
&'pression Parameter
&'pression Parameter
Accenture Ab Initio Training 30
'aterials presented in the =elp
'aterials presented in the =elp
System
System
Components in the
Components in the
Component
Component
Reference
Reference
D'1 in the
D'1 in the
Data Manipulation
Data Manipulation
Language Reference
Language Reference