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

S9(5)V9(2) occupies how many bytes memory ?

6 Answers   Cap Gemini,


Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER

4 Answers  


What is the linkage section?

4 Answers  


i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?

6 Answers  


How to read records from flat file in reverse order through COBOL program?

14 Answers   Accenture, Broadridge, IBM, MAT, Polaris, SPIC, Syntel, TCS, Wipro,






A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.

1 Answers  


01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ?

6 Answers   Patni,


What guidelines should be followed to write a structured Cobol program?

1 Answers  


i want to learn mainframes. i completed MCA ,whats the future of mainframes

5 Answers  


Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?

1 Answers  


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

0 Answers  


How can you submit a job from COBOL programs?

2 Answers   ITC Infotech,


Categories