Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SSRANGE and NOSSRANGE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SSRANGE and NOSSRANGE
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    Post subject: Array bound checking
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts PL/I Equivalent command for NOSSRANGE satish.ms10 PL/I & Assembler 4 Tue Aug 25, 2009 12:25 pm
No new posts SSRANGE and NOSSRANGE PSS Sankar COBOL Programming 14 Fri Oct 10, 2008 10:42 am
No new posts How To specify SSRANGE & CHECK(ON... itjagadesh COBOL Programming 8 Fri Oct 26, 2007 8:14 pm
No new posts Why SSRANGE option is used for rajyalalitha Mainframe Interview Questions 3 Tue Sep 26, 2006 9:28 am
No new posts How can we set SSRANGE compiler optio... jerrinfrancis COBOL Programming 13 Tue Aug 29, 2006 1:36 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us