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...