Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SSRANGE Compiler option

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SSRANGE Compiler option
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

Prandip

New User


Joined: 04 Mar 2005
Posts: 85
Location: In my tiny cubicle ...

PostPosted: Tue Mar 15, 2005 12:56 am    Post subject: Re: ssrange
Reply with quote

SSRANGE is not a JCL parameter.
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    Post subject:
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    Post subject:
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    Post subject: thanks
Reply with quote

hi,
thanks for ur replies.
will contact u all with another query.

bye

mainframemouli wrote:
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
narena

New User


Joined: 16 Mar 2005
Posts: 18

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

Hi.....

SSRANGE is a COBOL Compiler Option.

If we declare a table with 5 occurences. 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    Post subject:
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    Post subject: Re: SSRANGE Compiler option
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    Post subject: Reply to: SSRANGE Compiler option
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    Post subject:
Reply with quote

Hi Sumit and sunojsm,
See below link,
I think this has everything you needed icon_smile.gif
http://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    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 pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm
No new posts Who can recomend or to know a PL1 com... Miguel Fernandez DB2 0 Tue Feb 14, 2017 1:42 pm
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us