I have a occurs for 100 times but it has executed 101 time
what could be the reason?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / babjee talluri
we use compiler option is SSREANGE , it is used to array
boundary checking, by default NOREANGE,
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / arun gopal
Logical error!!.. check the logic to see if the logic which
performs that section is coded properly to exit at the
bondary condition.
| Is This Answer Correct ? | 5 Yes | 2 No |
I know my query will return more than one row but I don't want cursor what should I do?
What is difference between comp & comp-4?
Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be
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?
what is the difference between Plan & package
i need the code for this program in cobol. 2 + 1 = 3 4+3=7 6+5=11 8+7=15 10+9=19
IF there 5 to 6 files in a JCL and there is some space abends, how can we identify which file has space abend and what can be done to get off that abend or rectify that abend.
how to run sub programs using static and dynamic call ...
What is Static and Dynamic linking ?
What type of SDLC u followed? Why?
Explain how to differentiate call by context by comparing it to other calls?
how many divisions are there in cobol