> For the complete documentation index, see [llms.txt](https://docs.zingg.ai/0.3.3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zingg.ai/0.3.3/stepbystep/link.md).

# Linking across datasets

In many cases like reference data mastering, enrichment etc, 2 individual datasets are duplicate free but they need to be matched against each other. The link phase is used for such scenarios.

`./zingg.sh --phase link --conf config.json`

Sample configuration file [configLink.json](https://github.com/zinggAI/zingg/blob/main/examples/febrl/configLink.json) is defined at [examples/febrl](https://github.com/zinggAI/zingg/tree/main/examples/febrl). In this option, each record from the first source is matched with all the records from remaining sources.

A sample output is given in the image below. The linked records are given same z\_cluster id. Last column (z\_source) in the output tells the source dataset of that record.

![Link results](https://4036728382-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ZRr4ik7PJ2qmCP10In9%2Fuploads%2Fgit-blob-b6b8516ed2a228ca4b3fd39574100b92ca3ae502%2Flink.png?alt=media)
