String vs ustring

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
agpt
Participant
Posts: 151
Joined: Sun May 16, 2010 12:53 am

String vs ustring

Post by agpt »

What is the difference between string and ustring?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The "u". :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Which is short for 'Unicode', btw.
-craig

"You can never have too many knives" -- Logan Nine Fingers
agpt
Participant
Posts: 151
Joined: Sun May 16, 2010 12:53 am

Post by agpt »

chulett wrote:Which is short for 'Unicode', btw.


Thanks Craig. What is this unicode language? is it the one used by OSH script?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

This should help.
-craig

"You can never have too many knives" -- Logan Nine Fingers
agpt
Participant
Posts: 151
Joined: Sun May 16, 2010 12:53 am

Post by agpt »

chulett wrote:This should help.
Thanks Craig!!!

So it means we define unicode character set only when either we have NLS enabled or data s being transferred between two sources which might have different native character set.

Correct me if I am wrong.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes, you're wrong. No product is able to transfer data between two sources which might have different character set (from each other).

Unicode should be used when the data being processed can not be represented in a single-byte character set (and even sometimes when it can be).

More information about Unicode can be had from http://www.unicode.org web site.

Incidentally, the "u" in ustring does not stand for Unicode; it stands for "unsigned".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

D'oh! Who knew strings could be signed! :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply