P1 Ab Initio Basic Components
P1 Ab Initio Basic Components
Basic Components
Filter By Expression
Filter by Expression
filters records
according to a DML
expression or
transform function,
which specifies the
selection criteria.
Filter by Expression
is sometimes used to
create a subset, or
sample, of the data.
Ports:
Parameters
– in
select_expr
– out
– use_package
– deselect
– package
– reject
– error_group
– error
– log_group
– log
– reject-threshold
– logging
Reads records from input port, sorts them by key, and writes
the result on the output port.
Ports:
Parameters
– in
key
– out
select
– dup
keep
– reject
package
– error
error_group
– log
log_group
– reject-threshold
– check-sort
– logging
Target Fields
Source Fields Transformation Rules
output-variable.field :: expression;
a b c
x y z
9 45 AB
out :: reformat(in) =
begin
out.x :: in.b - 1;
out.y :: in.a;
out.z :: string_concat(in.c,”C”);
end;
9 45 AB
out :: reformat(in) =
begin
out.x :: in.b - 1;
out.y :: in.a;
out.z :: string_concat(in.c,”C”);
end;
out :: reformat(in) =
begin
out.x :: in.b - 1;
out.y :: in.a;
out.z :: string_concat(in.c,”C”);
end;
44 9 ABC
out :: reformat(in) =
begin
out.x :: in.b - 1;
out.y :: in.a;
out.z :: string_concat(in.c,”C”);
end;
44 9 ABC
Reformat Reorder
id+1000000
Output record format:
record
decimal(7) id;
string(8) last_name;
date(”YYYY.MM.DD”) bday;
end
1000345Smith
1000345Smith 1963.09.02
1963.09.02
Output Sorted on
Field first_name