Can we access the a[0] in the array ?
Answers were Sorted based on User's Feedback
Answer / jai ho
i think it will send soc4 abend bcoz a[0]
is out of bound.
Correct me
| Is This Answer Correct ? | 4 Yes | 0 No |
It will give compilation time error, as the compiler knows
the value of subscript when compile the program.
ex: A[0]
if you are accessing the same by subscript variable, then
it will give run time error.
ex: A[ws-cnt]
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / i go crazy
The compilation should be done with the compiler option SSRANGE. If NOSSRANGE is used, then we can use A(0) without any issue.
| Is This Answer Correct ? | 3 Yes | 0 No |
what is Pic 9v99 Indicates?
What COBOL construct is the COBOL II EVALUATE meant to replace?
What is the difference between COMP & COMP-3 ?
How can we increase the size of an existing PDS to include more no. of modules.
How to execute a set of JCL statements from a COBOL program?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is the default value of DISP for temp datasets
How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?
diffrence between renames and redifnes with examples
What is an explicit scope terminator?
what is difference between cobol and cobol/400
What is the difference between binary search and sequential search?