SSRange is used to do a range check on which of the
Following.
SUBSCRIPT,INDEX,REFERENCE MODIFICATION,Run-time option.

Answers were Sorted based on User's Feedback



SSRange is used to do a range check on which of the Following. SUBSCRIPT,INDEX,REFERENCE MODIFICA..

Answer / sunaina javali

SSRange is a compiler options,is used to do a SUBSCRIPT out
of range checking. NOSSRANGE is the default and if chosen,
no run time error will be flagged if your index or
subscript goes out of the permissible range

Is This Answer Correct ?    12 Yes 0 No

SSRange is used to do a range check on which of the Following. SUBSCRIPT,INDEX,REFERENCE MODIFICA..

Answer / asmara

After going thru all the details i came out to know that:
For generating a code that checks if subscripts or indexes
try to reference an area outside the region of the table.
Reference Modification: will ensure that only the starting
positionand is not greater than the current length of the
subject data item.
But Run-time option: you will get range checking only if
you compile your program with the SSRange option and run it
with the CHECK(ON) run time option.

If i am wrong let me send a copy of answer to my mail.
Because i am in dilema that Run-time Option or Reference
Modifiers. So clear me if i am wrong or right.

Regards,
Asmara

Is This Answer Correct ?    3 Yes 0 No

SSRange is used to do a range check on which of the Following. SUBSCRIPT,INDEX,REFERENCE MODIFICA..

Answer / dfjdf nsjf

Default is: NOSSRANGE
Abbreviations are: SSR|NOSSR
Use SSRANGE to generate code that checks if subscripts
(including ALL subscripts) or indexes try to reference an
area outside the region of the table. Each subscript or
index is not individually checked for validity; rather, the
effective address is checked to ensure that it does not
cause a reference outside the region of the table. Variable-
length items will also be checked to ensure that the
reference is within their maximum defined length.
Reference modification expressions will be checked to
ensure that:
· The reference modification starting position is
greater than or equal to 1.
· The reference modification starting position is not
greater than the current length of the subject data item.
· The reference modification length value (if
specified) is greater than or equal to 1.
· The reference modification starting position and
length value (if specified) do not reference an area beyond
the end of the subject data item.
If SSRANGE is in effect at compile time, the range-checking
code is generated. You can inhibit range checking by
specifying CHECK(OFF) as a run-time option. This leaves
range-checking code dormant in the object code. Optionally,
the range-checking code can be used to aid in resolving any
unexpected errors without recompilation.
If an out-of-range condition is detected, an error message
is displayed and the program is terminated.
Remember: You will get range checking only if you compile
your program with the SSRANGE option and run it with the
CHECK(ON) run-time option.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

a pic s9(4) comp b pic s9(4) comp-3 c ???????????????? d ???????????????? move a to c add a+B giving d. what is ur declaration for c,d?

4 Answers  


What should be the sorting order for SEARCH ALL?

5 Answers  


If I want to increase the Limit in GDG. What should I do?

2 Answers   IBM,


How may divisions are there in JCL-COBOL?

5 Answers   IBM,


if a pic 9(3) value 354,b pic x(2) value '46' then a)a>b 2)a<b 3)error

8 Answers   Cap Gemini,






what are the utilities for load and unload the DB2 tables

1 Answers   L&T,


Can printer files (having 133 characters) be of variable length?

3 Answers  


what is internal sort and external sort ? which is preferable ?

2 Answers   TCS,


Why we need to use redefine clause when we can define the variable seperately... what is actual need....

5 Answers   Accenture,


how many bytes does s9(7)COMP-3 field occupies?

6 Answers   ADP,


i have variable record in the 5th, i want to sort from 5th filed ? how ?

2 Answers   TCS,


When can the USING phrase be included in the call statement ?

2 Answers  


Categories