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

How To specify SSRANGE & CHECK(ON) parameters in cobol?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
itjagadesh

New User


Joined: 05 Dec 2006
Posts: 89
Location: chennai

PostPosted: Fri Oct 26, 2007 8:14 pm
Reply with quote

HI all,

How To specify SSRANGE & CHECK(ON) compile parameters in cobol?

In my cobol program in one scenario it is exceeding table( for 14 occurance of a variable it is going till 255 occurance).
By default my compiler is taking NOSSRANGE options.i need to know how to specify SSRANGE & CHECK(ON) options.How to pass thru link parm.
can anyone explain or post me sample code?


thanks
Jagadesh
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Oct 26, 2007 9:18 pm
Reply with quote

SSRANGE is a compile time option Specifying compiler options with the PROCESS (CBL) statement and CHECK is a runtime option
You can turn off SSRANGE at run time with the CHECK(OFF) run-time option. which I'd guess goes in as a PARM to the executing program....
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Oct 27, 2007 3:12 am
Reply with quote

Hello,

Is there some reason to use SSRANGE when simply using good code prevents any and all problems?

If you use your own code, you will be in complete control and can provide quality diagnostic information when some process is about to go "out of range" making problem resolution quicker.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sat Oct 27, 2007 4:00 am
Reply with quote

dick scherrer wrote:
Is there some reason to use SSRANGE when simply using good code prevents any and all problems?
Aw, com'on Dick, some times even I have been hit with a "problem" and had to try to diagnose it....Compiler and runtime options are not "that" visible.....it takes a little extra searching....
And I still haven't found an example that the run time CHECK option is a "PARM" value... Can you find it?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat Oct 27, 2007 5:18 am
Reply with quote

CICS Guy wrote:
dick scherrer wrote:
Is there some reason to use SSRANGE when simply using good code prevents any and all problems?
Aw, com'on Dick, some times even I have been hit with a "problem" and had to try to diagnose it....Compiler and runtime options are not "that" visible.....it takes a little extra searching....
And I still haven't found an example that the run time CHECK option is a "PARM" value... Can you find it?


The run time parameter is CHECK(NO) which turns off SSRANGE but I have looked several times and can't find how to specify it.
Back to top
View user's profile Send private message
itjagadesh

New User


Joined: 05 Dec 2006
Posts: 89
Location: chennai

PostPosted: Mon Oct 29, 2007 11:38 am
Reply with quote

Hi all,

can anyone post me sample code for (SSRANGE & CHECK(ON)) paramters.How to include in cobol compile program?

regards

Jagadesh
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Oct 29, 2007 12:20 pm
Reply with quote

Jagadeesh,

Quote:
How to include in cobol compile program?

What do you mean by compile program?

Quote:
can anyone post me sample code for (SSRANGE & CHECK(ON)) paramters.


Are you looking someway to code these options in teh COBOL source program? If yes, look at the prev topic -

ibmmainframes.com/about1920.html
Back to top
View user's profile Send private message
itjagadesh

New User


Joined: 05 Dec 2006
Posts: 89
Location: chennai

PostPosted: Wed Oct 31, 2007 12:25 pm
Reply with quote

Hi murmohk,
regarding compile program:

ie) how to specify compile option SSRANGE & CHECK(ON) parameters.?
I need one example code (not in cobol program). in compile program (cobol compiler or Endevor tool).
can any one of u people can send me code with SSRANGE & CHECK(ON)?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Oct 31, 2007 2:11 pm
Reply with quote

itjagadesh wrote:
how to specify compile option SSRANGE & CHECK(ON) parameters.?
I need one example code (not in cobol program). in compile program (cobol compiler or Endevor tool).
OK, after you look at the provided links........
Oh, by the way, they only apply to COBOL programs.......
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
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
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top