30. Character transformation between utf-8, ascii and ebcdic

Example 30.1

)action out='q1'

"Alas my love"

"You do me wrong"

"To cast me off"



)action in='q1'

)& func='>utf8'

)& outfile='yrsa'

)& outfunc='browse'



The example transforms the text using character representation utf-8, writing the file to dataset <user>.yrsa.data

Notice ISPF browse primary command ==> display utf8, which makes utf-8 characters readable.


Example 30.2

)action infile='yrsa'

)& func='<utf8'



The example assumes input being in character representation utf-8, converting it to ebcdic. The result is a re-creation of the original file from example 30.1 above.


The following transformations exists:



Transforms ebcdic characters to utf-8


Transforms utf-8 characters to ebcdic


Transforms ebcdic characters to ascii


Transforms ascii characters to ebcdic


Character transformation is mostly used when - but not limited to - communicating to and from UNIX and PC.