IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SSRANGE and NOSSRANGE


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
harikrishnanrajeev

EXPERT


Joined: 28 Jan 2004
Posts: 37
Location: Trivandrum

PostPosted: Mon Feb 16, 2004 11:23 pm
Reply with quote

Hello ,

Can any body pls explain to me what SSRANGE and NOSSRANGE is.

Thanks and regards

Hari.
Back to top
View user's profile Send private message
vamseepotti

New User


Joined: 21 Oct 2003
Posts: 45

PostPosted: Mon Feb 16, 2004 11:59 pm
Reply with quote

Hi Hari,

SSRANGE NOSSRANGE both r compiler options..

By default NOSSRANGE.

If we give compiler option SSRANGE*** its arrary bound checking

Vamsee.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Feb 17, 2004 7:57 am
Reply with quote

Hi Hari,

A few additional comments.

With the default (NOSSRANGE) active, a receiving field using an "out of range" subscript will be overlaid with invalid data (or more precicely, data not intended for that data area). The pgm will continue to execute until it abends because of the subscripting error or abends for another reason or it completes normally.

If you're LUCKY it will abend because of the subscripting error. If it doesn't you may never know, but your user(s) will be acting on erroneous data. Not good!

This is where SSRANGE is helpful. It will abend your pgm whenever the subscript is outside the range of the table it is referencing. E.g. if you have a 10 entry table and the ss is minus, zero or > 10.

Just remember that it has a performance impact and the option s/b changed before the pgm goes into production. Maybe even volume test.

HTH, Jack.
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Thu Jun 01, 2006 4:46 pm
Reply with quote

In other words if you do not have 'SSRANGE' as compiler option, even if you access 11th occurence of an array of size 10. it would still not object but you can not predict the results as mmwife mentioned
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts PL/I Equivalent command for NOSSRANGE PL/I & Assembler 4
No new posts SSRANGE and NOSSRANGE COBOL Programming 14
No new posts How To specify SSRANGE & CHECK(ON... COBOL Programming 8
No new posts Why SSRANGE option is used for Mainframe Interview Questions 3
No new posts How can we set SSRANGE compiler optio... COBOL Programming 13
Search our Forums:

Back to Top