Tags

,

COBOL – PERFORMANCE IMPROVEMENT

All the options provided below when applied to a COBOL program will improve its performance.

  1. INITIALIZE statement when converted to Machine code after the compile, it would create move statements for each individual field in the GROUP variable separately. Instead, we can make use of a single MOVE statement.

    Also in your program, if you had to perform INITIALIZE to a group of variables multiple times, it is advisable to have a separate section of the GROUP variable in the WORKING-STORAGE section with all of the INDIVIDUAL fields INITIALIZED (using VALUES)
    and MOVE this GROUP variable to the actual GROUP variable whenever required.

  2. During Arithmetic Operations (with some limitations), COMP fields provide more performance compared to COMP-3 which indeed provide more performance compared to DISPLAY variables.
  3. Index represent displacement value of the table entry from the beginning of the table while subscripts represent the occurrence number of an element. The value of an index has the element size factored into it, whereas the value of a subscript must be multiplied by the element size when the subscript is used.
  4. If SSRANGE is in effect at compile time, range-checking code is generated. This would degrade performance. Also You can inhibit range checking by specifying the CHECK(OFF) runtime option. Doing so leaves range-checking code dormant in the object code. Optionally, the range-checking code can be used to aid in resolving unexpected errors without recompilation.
Important SQL CODES and ABEND CODES
SORT JOIN – TO JOIN TWO FILES BASED ON A KEY
KNOW YOUR MAINFRAME
REXX – INITIAL SETUP
HOW TO SUBMIT A BATCH JOB FROM THE CICS PROGRAM
CICS – EXEC interface block – EIBRESP Values
CICS – EXEC interface block Fields
Flow of control between COBOL programs, run units, and CICS
CICS INTERVIEW QUESTIONS
CICS TIPS
COBOL – COPY and INCLUDE statements
COBOL – PERFORMANCE IMPROVEMENT
COBOL – SIGN STORED IN COMP, COMP-3 AND DISPLAY FORMATS
SHORTEST COBOL PROGRAM
RESTART LOGIC IN COBOL DB2 Program
GOBACK – EXIT PROGRAM – STOP RUN
Continuation lines in COBOL
Computational items – COMP, COMP 1 , COMP 2, COMP 3
COBOL program format
cobol indicator area column-7 and area a and area b
COBOL INTERVIEW QUESTIONS
COBOL TIPS
COBOL COMPILER OPTIONS
The IDENTIFICATION DIVISION


Advertisements