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

01 var1 pic s9(9)v99. 01 var2 pic x(30). procedure division. move 12345.99 to var1. move12345.99 to var2. display var1. display var2. what is the output?

2 Answers   IBM,


I know my query will return more than one row but I don't want cursor what should I do?

1 Answers  


i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?

12 Answers  


Write a program to concert an Indexed file into Sequential file?

1 Answers   Covansys,


9(2).99 how many bytes take? Why . consider as a byte?

2 Answers  






Write down the divisions of cobol program?

0 Answers  


s9(18) comp-3:: What is the size of memory it takes internally?

4 Answers  


How can we pass data from cobol to JCl?

7 Answers   ADP, Amdocs, IBM,


can we use full outer join with cursors declared in cobol program?

2 Answers  


can any one help -s806

6 Answers  


Can 88 level variable be declared in FD section..?

1 Answers   Infosys,


subscript and index r not coded in u r application program what will happen?

2 Answers  


Categories