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

SSRANGE Compiler option in COBOL


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

New User


Joined: 21 Jun 2004
Posts: 33
Location: Andorra

PostPosted: Mon Mar 14, 2005 11:46 pm
Reply with quote

hi,

what is SSRANGE? how to give it in jcl.can anyone
explain with example.

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

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Mar 15, 2005 8:48 am
Reply with quote

Look in the index of the COBOL Pgmr's Guide for the compiler you're using. It must be COBOLII or later.
Back to top
View user's profile Send private message
mainframemouli

New User


Joined: 01 Mar 2005
Posts: 52
Location: Mysore

PostPosted: Tue Mar 15, 2005 10:26 am
Reply with quote

SSRANGE is a cobol compiler option.(Sub Script Range)

if you set the SSRANGE then whenever the subscript exceeds its declared
number it will give a Eroor.

That is a variable is declared like this...

01 field1.
02 field2 pic x(10) occurs 10 times.


then field2(1) ......field2(10) is allowed when it exceeds it will give error
ex: field2(11)

But the Default is NO SSRANGE.
Back to top
View user's profile Send private message
sunojsm
Warnings : 1

New User


Joined: 21 Jun 2004
Posts: 33
Location: Andorra

PostPosted: Tue Mar 15, 2005 10:58 am
Reply with quote

hi,
thanks for ur replies.
Back to top
View user's profile Send private message
narena

New User


Joined: 16 Mar 2005
Posts: 18

PostPosted: Wed Mar 16, 2005 4:55 pm
Reply with quote

Hi.....

If we declare a table with 5 occurrences. If in the program we want to access the 6th variable then some times the program will not give error. So at that time we have to specify SSRANGE option.

It will be specified in the PARM Parameter of IGYCRCTL .
Back to top
View user's profile Send private message
raju1951

New User


Joined: 13 Feb 2004
Posts: 4

PostPosted: Sun Mar 20, 2005 1:09 pm
Reply with quote

if SSRANGE is chosen and if the subscript value is out of range
then there will be abend.
if NOSSRNAGE (default) then a out of range subsricpt value may result in
fetching junk data without abend.
Back to top
View user's profile Send private message
Vayunandanrao

New User


Joined: 22 Mar 2005
Posts: 9

PostPosted: Tue Mar 22, 2005 3:24 pm
Reply with quote

Hi,
By default the option is nossrange u have to keep this as SSRANGE to check the errors when u r using the occurs clause

Eg: if u have a(10) it can accept 11th element also so it wont show any error if u use compiler option SSRANGE then it will show error when ur treying to enter the data
Back to top
View user's profile Send private message
sumitmalik29
Warnings : 1

New User


Joined: 10 Feb 2008
Posts: 19
Location: bhuneswar

PostPosted: Thu Nov 20, 2008 11:17 am
Reply with quote

can anybody explain how to use SSRANGE in the cobol program with example
thanks in advance
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Nov 20, 2008 11:21 am
Reply with quote

Hi Sumit and sunojsm,
See below link,
I think this has everything you needed icon_smile.gif
ibmmainframes.com/viewtopic.php?t=35028&highlight=ssrange
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top