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 do you understand by passing by reference and passing by content?
how do you reference the variable block file formats from cobol programs
if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?
I have a file it contain 10 records.i got abend at 8th record because of soc7.how do you know that perticular record got abend?
if someone is using my file,how can i find which user id is using?
The following entries appear in the WORKING-STORAGE SECTION: 01 DATE-TODAY. 05 YY PIC XX VALUE "90". 05 MM PIC XX VALUE "12". 05 DD PIC XX VALUE :31". 01 DATE-EDIT PIC XX/XX/XX. MOVE DATE-TODAY TO DATE-EDIT. (a) 901231 (b) 90/12/31 (c) 31/12/90 (d) 311290
when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?
What is reference modification? What is UNION in sql and syntax? What is the difference between GDGS and VSAM? Which is prefer one? What is processing groups in endevor?
Explain what you understand by passing by value.
study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10
How to covert given string into ASCII value in COBOL/MF COBOL
What are different file OPEN modes available in COBOL?