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, ascii() Function, EBCDIC, BASIC Functions, Statements and Functions