0% found this document useful (0 votes)
224 views4 pages

Abinitio Assessment 1

The document discusses various Abinitio concepts including file extensions, the transform directory, sort component behavior, handling null values with FILTER BY EXPRESSION, default REFORMAT output, filtering by department with FILTER BY EXPRESSION, joining to overcome duplicate keys, using EMBED to write DML, and removing duplicates with DEDUP.

Uploaded by

ArjunFrankie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
224 views4 pages

Abinitio Assessment 1

The document discusses various Abinitio concepts including file extensions, the transform directory, sort component behavior, handling null values with FILTER BY EXPRESSION, default REFORMAT output, filtering by department with FILTER BY EXPRESSION, joining to overcome duplicate keys, using EMBED to write DML, and removing duplicates with DEDUP.

Uploaded by

ArjunFrankie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Abinitio Assessment

1. I) Extentions in Abinitio:
.mp
.dbc
.dat
.dml
.xfr

II) Extention of graph is .mp ( we use this extention to save our graph)

III) We write .xfr files in “Transform” Its a xfr directory where we can write our
logics/our own funtions for the transformation. There are two types of view (Text
and Grid view) We can choose our views according to our need.

2. Employee name in Ascending using sort Component:

In general Sort component by default sort the values in Ascending order.

Components used: 1 input file, 1 sort component, 1 output file.

Sort component performs “Gather” on its in port so there is no need to gather data
before sorting it.

Run time behavior of SORT:


 
SORT does the following:
 
1.Reads the records from all flows connected to the in port and splits it into temporary files
that are smaller in size than the number of bytes specified by the max-core parameter
 2.Sorts the records in each temporary file according to the sort key.
 SORT stores any temporary files in the working directories specified by its layout.
 3.Repeats steps 1 and 2 until it has read all records.
 4.Merges all temporary files, maintaining the sort order.
 5.Writes the result to the out port.
 Dml:

Record
String (“ “) empname
String (“ \n“) department
End

In Input file properties, In output port give embed option mention this dml to
perform the operation.

In sort properties, Inside parameters mention the field as empname and direction as
Ascending. Based on this the component will sort the values.
Use an output component and give propagate from neighbour option in port. The
then use the output component to end the graph.

Expected Output:
Empname Department
Durai HR
Magesh Analyst
Visnu Manager

3. Display null values using FBE:

If the use_package parameter is true then it executes the functions defined in the
package. If its false then the component writes the records in deselect ports.

For NULL values: FILTER BY EXPRESSION writes the record to the reject port and a descriptive
error message to the error port.
 
4. when we didn't perform any function on reformat component, wat will
be ouput in default?
If neither output-index nor output-indexes has a value (the usual case when there is only
one out port), REFORMAT sends the input record to every transform-out port pair, beginning
with out0 and progressing sequentially.

5. Display student belongs to cse department using FBE?

Dml:
Record
String (“ ”) stu_name;
String(“\n) depart;
End

In FBE component:
In select_expr parameter
Filters records according to the DML expression you specify. You may use block expressions
in this parameter.

you can supply a select function in the component transform package. To do this, set
use_package to true.

Use a input port, A FBE component and an Output port.

Read the I/p file and in FBE component mention depart as cse.
If the condition is true -> then the department cse will sent to select port and then to o/p
port.
If condition is false (if depart is not cse) then it will sent to deselect port.
Connect the select port to an output file. And deselect port to a trash component to end the
graph.

6. Out of order record error.


7. Either by using left outer join or right outer join
8. We can use override-key in joins to overcome (cust, customer) in joins.
9. We use embed to write our own dml. We can also use probagate from neighbours,
use file, use another port in graph.
10.

11.In FBE if the condition is true (1) the it writes to the select port
If the condition is false(0) then it writes to the deselect port.
12.
13.dml:
Record
Decimal(“,”) id;
String(“,”) name;
String(“,”) department;
String(“\n”)city;

14. Output:
emp id
100 01
101 02
102 03
103 04
104 05
105 06
106 07
108 08

Concate has no parameter. Its input and output dml should be same.
It will merge all flows and gives a single flow as o/p.

15. We can remove duplicate records by using dedup component.

16. If we get the input by using input file and reformat comonent
REFORMAT determines whether a transform function is specified in either the output-index
or output-indexes parameter.
If output-index or output-indexes has a value, REFORMAT evaluates the specified index
transform. If output-indexes is defined, it should return a vector of port index values. If
output-index is defined, it should return a single port index value. If both output-indexes and
output-index are defined, the value of output-index takes precedence
Here mentiom that we need custname and custid.
There by we can drop the branch field from the input and obtain our desired output.

Use output file to collect the ouput from the out port of reformat and also to end the graph.

17. Merge
18. Pipeline paralleisim
19. Watcher
20. 4 records

You might also like