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 the compute verb? How is it used?
Why there is no questions in this column?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
what are the steps to sort in a cobol program?
What is the difference between static call & Dynamic call?
What should be the sorting order for SEARCH ALL?
Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?
How do we get current date from system with century in COBOL?
What is the difference between binary search and sequential search?
I want ALL ERROR codes in VSAM
3 Answers American Express, TCS,
what is the default print format? in cobol
What is the difference between subscript and index?