The ebcdic() function converts a string of ASCII-encoded characters into their equivalent EBCDIC values.
ebcdic(str.exp)
str.exp | String of ASCII-encoded characters to convert into their equivalent EBCDIC values. |
The ASCII string rec is written to tape in EBCDIC.
writet ebcdic(rec) else...