View previous topic :: View next topic |
Author |
Message |
infoman123 Beginner
Joined: 02 Nov 2004 Posts: 57 Topics: 20
|
Posted: Fri May 25, 2007 5:59 am Post subject: DBCS charater issue |
|
|
Hi All,
We have a chineese (DBCS) information in a variable X(60) and we are producing a report with this info.
WS-CHINESE-DBCS X(60) having some chinese charaters
WS-REPORT-VAR X(55).
So we are facing a problem when WS-CHINESE-DBCS having chinese information of 60 bytes. so when WS-CHINESE-DBCS is moved to WS-REPORT-VAR its showning some junk characters as result. But if WS-CHINESE-DBCS is having info less than 55 bytes the WS-REPORT-VAR shows correctly. Why is this so.
My understanding is it should truncate the last 5 bytes of WS-CHINESE-DBCS and write 55 bytes of WS-CHINESE-DBCS to WS-REPORT-VAR.
Can anyone tell me is there any difference in the movent of DBCS and normal charaters.
Regards |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Fri May 25, 2007 6:12 am Post subject: |
|
|
This is on another forum site _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Fri May 25, 2007 6:22 am Post subject: |
|
|
You do understand that the DB in DBCS stands for Double Byte, don't you?
I would think that if you want to maintain data integrety, you would be (re)defining the DBCS with either a G or N rather than an X....
"The PICTURE character-string can contain the symbol(s) G, G and B, or N. Each G, B or N represents a single DBCS character position."
5.3.11.3.6 DBCS items |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|