1

How can I instruct PL/I to print a UTF-8 value as EBCDIC. Is there a "trick" in PL/I or do I have to call the z/OS unicode services to convert the UTF-8 value?

PUT SKIP EDIT('VAR: ',VAR) (A,A);

Using the above instruction gives unreadable output.

VAR: &   (!ยข  

1 Answers1

2

Try UTF8TOCHAR, which appears to be new with IBM Enterprise PL/I version 5.

PUT SKIP EDIT('VAR: ',UTF8TOCHAR(VAR)) (A,A);

That's just freehand, but I think you get the idea.

cschneid
  • 10,237
  • 1
  • 28
  • 39