View previous topic :: View next topic |
Author |
Message |
pzmohanty Beginner
Joined: 20 May 2004 Posts: 97 Topics: 43 Location: hyderabad, India
|
Posted: Wed Feb 09, 2005 9:12 am Post subject: Problem while taking a data from DB2 table into a dataset |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
pzmohanty Beginner
Joined: 20 May 2004 Posts: 97 Topics: 43 Location: hyderabad, India
|
Posted: Thu Feb 10, 2005 2:04 am Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
Posted: Thu Feb 10, 2005 8:20 am Post subject: |
|
|
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 |
|
|
|
|