National literals and the NATIONAL-OF and DISPLAY-OF intrinsic functions are 
available at least back to version 4.1.  The limitation of national literals to 
80 characters (however that character is defined in the code page selected by 
the CODEPAGE compiler option) seems like another poor choice to me.  Why is the 
length of literals so limited?  160 "characters" for "ordinary" alphanumeric 
literals and 80 "characters" for national literals looks like a compiler 
lexical scan limitation to me, but I could be wrong about that.

Peter

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Ze'ev Atlas
Sent: Friday, October 25, 2013 12:00 AM
To: [email protected]
Subject: Re: Is there currently a way to access MongoDB from z/OS LE languages?

Actually, it looks like there is support to UTF-8:
___________________________________
You need to do two steps to convert ASCII or EBCDIC data to UTF-8:

Use the function NATIONAL-OF to convert the ASCII or EBCDIC string to a 
national (UTF-16) string.
Use the function DISPLAY-OF to convert the national string to UTF-8.
___________________________________
This is from Enterprise COBOL for z/OS Version 5.1 documentation and there is N 
type.

ZA
--


This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to