I have a occurs for 100 times but it has executed 101 time
what could be the reason?
Answer Posted / niki
Change Compiler ioption NO SSrange to ssrange. But the
Default is NO SSRANGE.
IF U Use Compiler option SSrange, then whenever the
subscript exceeds its declared
number it will give a Eroor.
for example :
A variable is declared like this...
01 field1.
02 field2 pic x(10) occurs 10 times.
Oputput will be
then field2(1) ......field2(10) is allowed when it exceeds
it will give error
ex: field2(11) ----- erro msg will be displayed
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
Why did you choose to work with ibm mainframe cobol programming?
how do you reference the printer file formats from cobol programs
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
how to refer the data field?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Write a program to enter and display the names of students in a class using the occurs clause.
Are you comfortable in cobol or jcl?
What are declaratives and what are their uses in cobol?
Which division and paragraphs are mandatory for a COBOL program?
What are the different open modes available in cobol?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is amode(24)?
what is the difference between COBOL2 AND COBOL390?
Can we change the password using ALTER? anyone tried and changed?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there