Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Mismatch in QMF and COBOL results

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
santhoshm

New User


Joined: 13 Jun 2007
Posts: 32
Location: chennai

PostPosted: Tue Dec 11, 2012 4:04 pm    Post subject: Mismatch in QMF and COBOL results
Reply with quote

Hi,

I have a field 'PREF_NAME' in a table defined CHAR(40). The table has data for 'PREF_NAME' and it has some junk characters also.

QMF Result:
Select PREF_NAME from TAB1 resulted below value:
Blaze Vran~ois

COBOL Result: the same query results when extracted into a file it has the below value:
Blaze Vran ois

Can someone explain what is causing the issue here. Even the values which we saw after HEX ON in file(COBOL) & QMF are different.


Thanks
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Tue Dec 11, 2012 4:24 pm    Post subject:
Reply with quote

And what are, in fact, the values that you are getting, and the value actually in the table?
Back to top
View user's profile Send private message
santhoshm

New User


Joined: 13 Jun 2007
Posts: 32
Location: chennai

PostPosted: Tue Dec 11, 2012 6:39 pm    Post subject: Reply to: Mismatch in QMF and COBOL results
Reply with quote

Hi attached has the details. First column has the data from table and the 2nd column has the data extracted from the file(generated in COBOL)
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Tue Dec 11, 2012 6:56 pm    Post subject:
Reply with quote

Quote:
it has some junk characters also.
This is a wrong statement -- there is no such thing as "junk characters". There may be characters you don't recognize, and there may be characters you don't want to see, but they are still part of the collating sequence and hence are real characters, not "junk".

COBOL defaults to using code page 1140 -- what code page does your QMF default to?
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Tue Dec 11, 2012 7:51 pm    Post subject: Reply to: Mismatch in QMF and COBOL results
Reply with quote

You have "accented" characters, and neither codepage that you are using is able to display them as accented charactes.

For instance, they should both appear as "Fran├žois", with a cedilla under the "c". You need a codepage which has all the characters you need for your accent/diacritic usage.
Back to top
View user's profile Send private message
santhoshm

New User


Joined: 13 Jun 2007
Posts: 32
Location: chennai

PostPosted: Tue Dec 11, 2012 8:31 pm    Post subject: Reply to: Mismatch in QMF and COBOL results
Reply with quote

I saw in compiler listing related to CODE PAGE.
00007C 0474 DC X'0474' UNSIGNED BINARY CODE PAGE CCSID VALUE

I am not able to figure out what is there for QMF.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Dec 11, 2012 8:41 pm    Post subject:
Reply with quote

Hello,

Suggest you ask the people who install / support QMF on your system. . .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us