convert comp-2 to alphanumeric

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
_radix
Member
Posts: 1
Joined: Tue Mar 31, 2015 11:23 pm

convert comp-2 to alphanumeric

Post by _radix » Tue Mar 31, 2015 11:29 pm

I have a copybook with several COMP-2 variables in it that I need to convert to alphanumeric without loss of data for the purpose of display only. What is the best way to do this? I have tried move, REDEFINES, moving to PIC 9( 8 ) then to PIC X( 8 ) and nothing works.

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Wed Apr 01, 2015 11:48 am

You've asked and seemingly abandoned this question elsewhere. Why don't you just respond there?

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