Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a Unicode string in cobol... 2

Status
Not open for further replies.

C2GUICOBOL

Programmer
Mar 15, 2005
9
0
0
US
Hello,

I want to declare a Unicode string in my cobol program, the
required size for that string would be a WCHAR variable in
the C++ header file, I am able to declare that datatype for
my Unicode string, however, I am unable to use a PIC clause
to indicate the size of that string. Can you please help?
I am using micro focus cobol compiler (NE 3.0) with win2k.

here is the cobol code:

Working-Storage Section.
77 WCHAR typedef pic xx.

01 MyUnicodeString WCHAR.

thanks a lot.

 
Check out the N/E documentation for

PIC N

and

USAGE NATIONAL

(you don't need to create a TYPEDEF - unless you really want to).

You should also check out the
NATIONAL-OF
and
DISPLAY-OF

intrinsic functions for converting to and from UNICODE


Bill Klein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top