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 

Problem while taking a data from DB2 table into a dataset

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


Joined: 20 May 2004
Posts: 97
Topics: 43
Location: hyderabad, India

PostPosted: Wed Feb 09, 2005 9:12 am    Post subject: Problem while taking a data from DB2 table into a dataset Reply with quote

Hi all,

I am facing a problem while querying a DB2 table and populating the query data to a file using COBOL program.

detail desription of problem :

I am working on Z/OS environment with COBOL 360 & DB2 Ver 7.

One of my cobol program is quering data from db2 table using select statement and writing the data to a file .

My problem arised when one of the DB2 CHAR(30) field name CUST_NAME have data like 'P.MOHANTY' , when this data is being moved to file the PERIOD(.) in CUST_NAME field is converted to some special character having HEX code of 53 in file.

Can anyone please explain me the reason of this & can please let me know how to overcome this problem.

Thanks
P.R.mohanty
_________________
Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Feb 09, 2005 10:58 am    Post subject: Reply with quote

pzmohanty,

I guess there is a CCSID encoding defined on the table or the codepage used by your program.

The default CCSID 1140 is an equivalent of CCSID 37 (EBCDIC Latin-1, USA) but includes the Euro symbol.

check this link for CCSID

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNSQH11/1.16?DT=20010718164132

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pzmohanty
Beginner


Joined: 20 May 2004
Posts: 97
Topics: 43
Location: hyderabad, India

PostPosted: Thu Feb 10, 2005 2:04 am    Post subject: Reply with quote

hi Kolusu,

Thanks for the reply , but I am still in the trouble.

Can you plz let me know how to get out of the problem
_________________
Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Feb 10, 2005 8:20 am    Post subject: Reply with quote

pzmohanty,
Quote:

Can you plz let me know how to get out of the problem


Mohanty ,

You need to specify the details if you want help. What is the codepage defined in your pgm. To check the codepage just compile the program and look at the compile listing (sysprint). It will have the codepage value.

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 -> Database 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