MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DBCS charater issue

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
infoman123
Beginner


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Fri May 25, 2007 5:59 am    Post subject: DBCS charater issue Reply with quote

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
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri May 25, 2007 6:12 am    Post subject: Reply with quote

This is on another forum site
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Fri May 25, 2007 6:22 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri May 25, 2007 8:15 am    Post subject: Reply with quote

Infoman123,

I sent you a private message like 10 days ago explaining the rules. It seems you don't read them. Read this

http://www.mvsforums.com/helpboards/viewtopic.php?t=8248

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group