Skip to Main Content
IBM Z Software


This portal is to open public enhancement requests against IBM Z Software products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Delivered
Workspace PL/I Compilers
Created by Guest
Created on Oct 29, 2012

Request for a WPIC Datatype in Enterprise PL/I for z/OS

We started to adapt our PL/I programs to support Unicode data. For this purpose we use the PL/I Datatype WCHAR (WIDECHAR) instead of CHAR for input/output and processing of all kinds of text-data.
This means that all such text data is stored in UTF-16 in the program as well as in
DATASETS and in DB/2 Databases. (In DB/2 this data is stored in
GRAPHIC or VARGRAPHIC columns.)
One of the biggest problems in this endeavor is the lack of a Unicode
PICTURE type "WPIC" to store formatted numerical data in UTF-16
In many situations we need to create records containing numeric data in
text (zoned) format (for printing or data exchange or storing data as
text string in a database column ...).
For this we use structures with CHAR and PIC like

DCL 1 INFO,
3 ITEMNAME CHAR(20),
3 ITEMCOUNT PIC'(3)Z9',
3 AMOUNT PIC '(9)Z9.V99';

WRITE FILE(XY) from(INFO);

If we now store text strings in Unicode and if we use
DCL 1 INFO,
3 ITEMNAME WCHAR(20),
3 ITEMCOUNT PIC'(3)Z9',
3 AMOUNT PIC '(3)Z9.V99';
WRITE FILE(XY) from(INFO);

then this results in a mixture of UTF-16 and EBCDIC which is not useable for our purposes.

If PL/I would support a WPIC data type, which stores the numbers and charachters in UTF-16, then we could use

DCL 1 INFO,
3 ITEMNAME WCHAR(20),
3 ITEMCOUNT WPIC'(3)Z9', /* fictional WPIC DATATYPE
invented by AMOS AT */
3 AMOUNT WPIC '(3)Z9.V99';
WRITE FILE(XY) from(INFO);

and this would result in a consistent UTF-16 String.

So the variable AMOUNT with type WPIC '(3)Z9.V99' would use 14 Bytes
(to represent 7 characters/numbers).
AMOUNT=12.34;
would have the hex representation
0020 0020 0031 0032 002E 0033 0034

The WPIC datatype would also allow converting from packed to zoned format by structure assignment, which we also use quite frequently

DCL 1 packedINFO,
3 ITEMNAME WCHAR(20),
3 ITEMCOUNT dec fixed(5),
3 AMOUNT dec fixed(11,2);

DCL 1 INFO,
3 ITEMNAME WCHAR(20),
3 ITEMCOUNT WPIC'(3)Z9',
3 AMOUNT WPIC '(3)Z9.V99';

info=packedinfo, by name;

Could you please examine, if it is possible to implement such a datatype in Enterprise PL/I for z/OS? This datatype would drastically reduce the effort for adapting our programs for unicode and allow us to keep our code concise.

Idea priority High
  • Guest
    Sep 14, 2015

    Due to processing by IBM, this request was reassigned to have the following updated attributes:
    Brand - Servers and Systems Software
    Product family - Programming Languages
    Product - PL/I Compilers

    For recording keeping, the previous attributes were:
    Brand - Rational
    Product family - Design & development
    Product - PL/I Compilers

  • Guest
    Sep 18, 2013

    this is available with Enterprise PL/I V4R4

  • Guest
    Dec 11, 2012

    work on this is underway for our next release