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
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 |
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 |
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 |
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?
What should be the sorting order for SEARCH ALL?
If I want to increase the Limit in GDG. What should I do?
How may divisions are there in JCL-COBOL?
if a pic 9(3) value 354,b pic x(2) value '46' then a)a>b 2)a<b 3)error
what are the utilities for load and unload the DB2 tables
Can printer files (having 133 characters) be of variable length?
what is internal sort and external sort ? which is preferable ?
Why we need to use redefine clause when we can define the variable seperately... what is actual need....
how many bytes does s9(7)COMP-3 field occupies?
i have variable record in the 5th, i want to sort from 5th filed ? how ?
When can the USING phrase be included in the call statement ?