Double Byte Character validation

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
hparthas
Member
Posts: 43
Joined: Thu Oct 21, 2010 11:17 pm

Double Byte Character validation

Post by hparthas » Fri Jul 08, 2016 12:24 pm

Team -

We use Japanese character - Kanji Character set to load our database. I see we are receiving invalid Double byte character which is causing the DB load process to get failed and leading other downstream issues. So I'm looking for any logic in COBOL we can do validation on the data which is received and either skip those or make it to Spaces so that this will avoid batch failure.

The Double Byte Kanji character can be in Name., Address, etc...

For Example :

X'0E438E0F' is Valid Double Byte character.
X'0E430F' is Invalid Double Character.

Any help in identifying these double byte as invalid would be of great help.

Thank you !!

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others