IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Mismatch in QMF and COBOL results


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 1788
Location: Bloomington, IL

PostPosted: Tue Dec 11, 2012 4:24 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Dec 11, 2012 6:56 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Dec 11, 2012 7:51 pm
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
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

Moderator Emeritus


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

PostPosted: Tue Dec 11, 2012 8:41 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top