Visual field guide

Ab Initio,
in motion.

Follow one order from a raw file to a finished record. See how Ab Initio graphs, transforms, and parameters work together.

Mint input sheets feed a violet transform processor. Amber output tiles hold the transformed records.
InputTransformOutput
Graph lab

Follow one record.

A graph connects processing steps. Play the example or select a component to inspect the order at that point.

orders.mpBrowser simulation

Read the order

Component

A single operation, such as reading a file or changing a field.

Port

A connection point on a component. An output port sends records to the next input port.

Flow

The connection that carries records between ports. Both ends must agree on the record layout.

Object atlas

Which file does what?

Open a file type to see its job in the same orders graph.

What the orders graph depends on
.dmlDescribes input fields
.xfrMaps output fields
.psetSupplies run values
orders.mp

Reads orders.txt · writes orders.avro using an Avro schema

First run

Build the orders graph.

Start with one line of test data in a development sandbox, your working copy of a project.

01

Open a sandbox in the GDE

Use the Graphical Development Environment to open your team’s development project. Add an input file containing A17|3|250 followed by a newline. The values mean order ID, quantity, and unit price in cents.

02

Describe and connect the records

Create orders.mp. Connect an Input File to a Reformat, then to an Avro-capable writer in your installed environment. Attach the input DML and check that the downstream port layouts match.

03

Map the fields and set the paths

In Reformat, carry over order_id and multiply quantity by unit price. Map the result to the writer’s total_cents field. Define input and output path parameters and save their test values in a parameter set.

04

Run it and inspect the output

Validate the graph, then run it from the GDE or with the parameter-set command below. Look for one record read and one written. Open the output with an Avro reader and check that order A17 totals 750 cents.

Where do the GDE, runtime, and EME fit?

You draw and edit the graph in the GDE. The Co>Operating System executes the graph on the run host. The Enterprise Meta>Environment (EME) stores versioned project objects and metadata. After testing, check in the graph and its dependencies so a teammate can reproduce the run.

How does the same graph handle more data?

Pipeline parallelism lets separate components work on successive records at the same time. Data parallelism divides records into partitions and runs copies of a component on them. For a total per customer, partition by customer ID so every order for one customer reaches the same group. Sort within each partition if the selected grouping component requires sorted input.

OrdersLane 1 · ALane 2 · BA
Route three orders by customer and watch each lane accumulate cents.
What if the record fails to parse?

Compare the raw line with the input DML. A comma where the layout expects a pipe can shift the fields. Inspect the first failing component’s log and any configured reject output. Correct the layout or source record, then rerun against a fresh test output and reconcile the counts.

Command reference

At the command line.

These examples assume a Unix shell on a configured Ab Initio development host. Start at the sandbox root. Substitute your project’s paths and parameter names.

Sources and further reading

For command options and component names in your release, open Ab Initio Help in your installed GDE.