home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rxgwa1.zip
/
functest.cmd
next >
Wrap
OS/2 REXX Batch file
|
1993-03-11
|
759b
|
20 lines
/* REXX */
/* */
/* Use e2a() (EBCDIC to ASCII) and a2e() (ASCII to EBCDIC) */
/* the same way you would use stardard rexx functions such */
/* as x2d() or c2x() */
/* */
if rxfuncquery('a2e') then
call rxfuncadd 'a2e','rxgwa','a2e'
if rxfuncquery('e2a') then
call rxfuncadd 'e2a','rxgwa','e2a'
ebcdic = 'πêëó@ëó@üò@┼┬├─╔├@óúÖëòç@'
ascii = 'This is an ASCII string'
say e2a(ebcdic)'... converted to ASCII'
say a2e(ascii)'..... converted to EBCDIC'
say e2a(a2e(ascii))'..... converted back to ASCII'
exit