what is srange and nosrange pls reply to ths question ?

Answers were Sorted based on User's Feedback



what is srange and nosrange pls reply to ths question ?..

Answer / i go crazy

ssrange is a compiler option. if u code this while compiling a cobol program, then the below advantages are there.
1. you cannot access the storage beyond the defintion of the occurs clause.
ex: ws-table occurs 5 times.
you cannot access ws-table(6).
If tried, job will give S0C4 exception.

2. You cannot use negative subscripts while referring to the array.
Ex: ws-table(-1) is not allowed.

Is This Answer Correct ?    6 Yes 0 No

what is srange and nosrange pls reply to ths question ?..

Answer / srikanth doki

If we give ssrange means while we store elements in arrays
beyond the limit then it will give error. When we declare no
ssrange means the elements will be inserted beyond the limit
ther will be no particular range. By default compiler will
take as no ssrange.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More COBOL Interview Questions

What is different between variable length and fixed length?

2 Answers   TCS,


01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?

3 Answers   Patni,


what are the working storage fields in BMS macro?

2 Answers   IBM,


1.What is the limit of linkage section?

4 Answers  


WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH

2 Answers   Cap Gemini,






What should be the sorting order for SEARCH ALL?

5 Answers  


what is the maximum error code in mainframe

2 Answers  


How to display the index.(displacement from an array)

4 Answers   IBM,


what is the difference between implicit and explicit scope terminator with example? 

1 Answers  


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

0 Answers  


can we write paragraph in area B .....

4 Answers   L&T,


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

5 Answers   Accenture,


Categories