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

Identify the invalid dataname from the following: (A) savings-account (B) annual-allocation-for-overhead (C) samount250 (D) 12demand

4 Answers   TCS,


Write some characteristics of cobol as means of business language.

0 Answers  


I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?

3 Answers  


how many bytes do SPPPP999 will store?

18 Answers  


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

0 Answers   IBM,






Can we use redefine clause in occurs clause?

10 Answers  


Why do we use COMP-3 variables for computation, when we know that they are non displayable fields and require additional MOVE to numeric field before we populate it in output Reports?

1 Answers   Accenture,


how can u redefine picx(10) with pic 9(6).

3 Answers   TCS,


How to pass return codes from cobol to jcl?

5 Answers  


what is the advantage of using redefines instead of delaring the variables ?

5 Answers   HCL,


how to transfer the file from pc to mainframe??

2 Answers  


Differentiate between structured cobol programming and object-oriented cobol programming.

0 Answers  


Categories