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

Give some advantages of REDEFINES clause?

2 Answers   Syntel,


hi, can you ppl tell me, how to check whether the rewrite we gave for the ksds file is successful or not in the program.? i gave rewrite, the rewrite code is executing and maxcc=0 but updation doenot happen in the file?

1 Answers   CGI,


There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?

2 Answers  


in how many mode we can open a file ?

4 Answers  


What is normalisation?

2 Answers   IBM,






what is sysncpoint?

1 Answers   IBM,


77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......

8 Answers  


how to know that the file has 300 records how to acess it?

0 Answers   Hewitt, TCS,


have in 100 records in a flat file i want to move records like 1,3,5,7,9,11,.. to Output file1 and 2,4,6,8,10,12,14 .. records moved to Output file2..Pls Provide real time answer..

5 Answers   TCS,


What are the differences bitween cobol and cobol-2?

1 Answers   Wipro,


What is the LINKAGE SECTION used in COBOL?

0 Answers   UGC Corporation,


Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be

7 Answers   TCS,


Categories