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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How To specify SSRANGE & CHECK(ON) parameters in cobol?
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: 3158
Location: Tucson AZ

PostPosted: Fri Oct 26, 2007 9:18 pm    Post subject:
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

Site Director


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

PostPosted: Sat Oct 27, 2007 3:12 am    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Sat Oct 27, 2007 4:00 am    Post subject:
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    Post subject:
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    Post subject: Reply to: How To specify SSRANGE & CHECK(ON) parameters
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: 1439
Location: Bangalore,India

PostPosted: Mon Oct 29, 2007 12:20 pm    Post subject:
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 -

http://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    Post subject: Reply to: How To specify SSRANGE & CHECK(ON) parameters
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: 2150
Location: At my coffee table

PostPosted: Wed Oct 31, 2007 2:11 pm    Post subject: Re: Reply to: How To specify SSRANGE & CHECK(ON) paramet
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm


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