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 |
In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?
How do u write test cases?
What are the different data types in cobol?
01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?
What is the LINKAGE SECTION used for?
What was removed from COBOL in the COBOL II implementation?
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....
what will happen if pass values more than 100 using PARM parameter?
) How do you access the migrate the data from production region to development region
i need a program by giving input as a abcd in any randem order but i need a output as 1234 related to abcd. i.e,. a for 1,b=2,c.....etc..
How to delete leading spaces/blank in COBOL ? Example:- 01 data-name-1 pic x(220) " English is a language". I would like to delete leading spaces.