usage of BINARY for arithmetic operations.

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
User avatar
Lghtning Lad
Member
Posts: 8
Joined: Thu Jan 21, 2010 6:59 pm

usage of BINARY for arithmetic operations.

Post by Lghtning Lad » Thu Jan 21, 2010 7:39 pm

In my code I have declared loop counters as a packed decimal field


01 INDEX-FIELD.
03 P PIC S9(5) PACKED-DECIMAL VALUE 0.

Will it improve performance on a significant basis of the COBOL program in terms of CPU time etc., if i declare this field as BINARY.

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