View previous topic :: View next topic
|
Author |
Message |
sunojsm Warnings : 1 New User
Joined: 21 Jun 2004 Posts: 33 Location: Andorra
|
|
|
|
hi,
what is SSRANGE? how to give it in jcl.can anyone
explain with example.
bye |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
mainframemouli
New User
Joined: 01 Mar 2005 Posts: 52 Location: Mysore
|
|
|
|
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 |
|
|
sunojsm Warnings : 1 New User
Joined: 21 Jun 2004 Posts: 33 Location: Andorra
|
|
|
|
hi,
thanks for ur replies. |
|
Back to top |
|
|
narena
New User
Joined: 16 Mar 2005 Posts: 18
|
|
|
|
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 |
|
|
raju1951
New User
Joined: 13 Feb 2004 Posts: 4
|
|
|
|
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 |
|
|
Vayunandanrao
New User
Joined: 22 Mar 2005 Posts: 9
|
|
|
|
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 |
|
|
sumitmalik29 Warnings : 1 New User
Joined: 10 Feb 2008 Posts: 19 Location: bhuneswar
|
|
|
|
can anybody explain how to use SSRANGE in the cobol program with example
thanks in advance |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
Back to top |
|
|
|