# t-read command

The t-read command reads from the magnetic
media unit attached to the current process and displays the contents
of each block read to the terminal or printer. Any type of Pick-formatted
media may be read with this command.

## Syntax

```
t-read {options}
```

## Parameter(s)

| options | block.number{-block.number} | Reads a specific number of blocks or a range of block numbers and specifies a range of blocks. block.number specifies the number of blocks to read. block.number-block.number specifies a range of blocks. Blocks are counted from the current position of the tape. If the entire option is omitted, all tape blocks up to the next EOF are read. |
| --- | --- | --- |
| a | Converts EBCDIC format to ASCII. | |
| h | Allows reading from non-Pick tapes without a Pick label and reading the first block on the tape. | |
| n | No pause—suppresses the pause at the end of each page on the terminal. | |
| p | Directs output to the system printer via the spooler. | |
| x | Displays in hexadecimal format. | |

## Example(s)

```
t-read
L 01F4 16:12:28 16 Jan 2003 Tape Label
RECORD = 1
1 FORMATC^****...
51 ****...**^* THIS PROGRAM FORMATS A P
.
.
.
[94] END OF FILE
```

## See also

- [save command](https://d3codex.com/tcl/save-command/)
- [t-dump command](https://d3codex.com/tcl/t-dump-command/)
- [t-load command](https://d3codex.com/tcl/t-load-command/)
- [t-rdlbl command](https://d3codex.com/tcl/t-rdlbl-command/)
- [t-weof command](https://d3codex.com/tcl/t-weof-command/)
- [Tape handling commands](https://d3codex.com/definitions/tape-handling-commands/)
- [Tape devices overview](https://d3codex.com/tcl/tape-devices-overview/)

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