# ebcdic() function

The ebcdic() function converts a string
of ASCII-encoded characters into their equivalent EBCDIC values.

Note: EBCDIC character strings cannot be displayed on ASCII
terminals.

## Syntax

```
ebcdic(str.exp)
```

## Parameter(s)

| str.exp | String of ASCII-encoded characters to convert into their equivalent EBCDIC values. |
| --- | --- |

## Example(s)

The ASCII string rec is written
to tape in EBCDIC.

```
writet ebcdic(rec) else...
```

## See also

- [ASCII](https://d3codex.com/definitions/ascii/)
- [ascii() function](https://d3codex.com/pickbasic-flashbasic/ascii-function/)
- [EBCDIC](https://d3codex.com/definitions/ebcdic/)
- [BASIC functions](https://d3codex.com/pickbasic-flashbasic/basic-functions/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)

---
Source: https://d3codex.com/pickbasic-flashbasic/ebcdic-function/ - part of the D3Codex reference.
