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 |
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 divisions in a cobol program?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
CAN ANY ONE HELP WHAT IS QTP? why it is nessery AND WEN IT IS USED?
Hai friends why we need to read a file before re-write a record?
The maximum number of dimensions that an array can have in COBOL-85 is ?
how to display comp3 variables reply soon ?
Whats the use of Examine command? can someone help me?
What is 88 level used for ?
what is subscript in cobol?give realtime example?
what is sync clause?
what is the difference between perform varying and perform until