COBOL compiler option - SSRANGE

cobol interview questions

Moderator: Moderator Group

Post Reply
User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

COBOL compiler option - SSRANGE

Post by Krishna » Sun Jul 19, 2009 7:46 pm

My COBOL program has an array defined to have 10 items. Due to a bug, I find that even if the program access
the 11th item in this array, the program does not abend. What is wrong with it?
Last edited by Krishna on Sun Jul 19, 2009 7:48 pm, edited 1 time in total.

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Sun Jul 19, 2009 7:46 pm

Must use compiler
option SSRANGE if you want array bounds checking. Default is NOSSRANGE.

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