# listdict command

The listdict BASIC program sorts the
given file’s dictionary items by attribute count and by item-id then
produces a report showing the contents of the various ADIs.

**Synonyms:** list-dict, ld

## Syntax

```
listdict {file.reference} {(options}
```

## Example(s)

Produces a report of the ADIs
in the master dictionary of the current account and directs the output
to the terminal.

```
listdict
```
Produces a report from the dictionary of the d3.doc file and directs the output to the spooler.

```
listdict d3.doc lptr
```

## See also

- [File reference (Access Query Language)](https://d3codex.com/access/file-reference-access-query-language/)
- [ld command](https://d3codex.com/tcl/ld-command/)
- [Options (Access Query Language)](https://d3codex.com/access/options-access-query-language/)

---
Source: https://d3codex.com/tcl/listdict-command/ - part of the D3Codex reference.
