comp and comp3

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
padmapriya7

comp and comp3

Post by padmapriya7 » Sun Feb 05, 2006 9:13 am

how can i view the comp and comp3 values in ps

User avatar
prasad
Member
Posts: 7
Joined: Mon Feb 06, 2006 12:04 am

Reading COMP-3 values in PS

Post by prasad » Mon Feb 06, 2006 12:27 am

Hi Padmapriya,

You need to use HEX ON commmand to see COMP-3 values in PS

When you use this command it will show two lines per each record. You need to read the comp-3 value
from left, top to bottom (in two lines) and then move to second character read top to bottom etc...

Example

+87634 will be displayed as

864
73C

-4567 will be displayed as

057
46D

last characters represents sign.

to come to normal display mode, use HEX OFF command


Thanks,
Prasad

academyindia4

Topic deleted by Admin

Post by academyindia4 » Tue Jan 19, 2016 7:18 pm

<< Content deleted By Admin >>

academyindia4

Topic deleted by Admin

Post by academyindia4 » Mon Feb 01, 2016 10:44 pm

<< Content deleted By Admin >>

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