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: 1771
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: 8119
Location: East Dubuque, Illinois, USA

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: 7315

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
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm


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