Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can we access the a[0] in the array ?

Answers were Sorted based on User's Feedback



Can we access the a[0] in the array ?..

Answer / mandozai

In cobol array starts with 1 not with 0

Is This Answer Correct ?    20 Yes 0 No

Can we access the a[0] in the array ?..

Answer / sandy

Not possible. It will throw compilation error.

Is This Answer Correct ?    8 Yes 2 No

Can we access the a[0] in the array ?..

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

Can we access the a[0] in the array ?..

Answer / suresh ramaiyan

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

Can we access the a[0] in the array ?..

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

Can we access the a[0] in the array ?..

Answer / dev

Can u explain why it throws compilation error?

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More COBOL Interview Questions

how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

0 Answers   Valtech,


why do u need inspect verb?

3 Answers   Patni,


what is MSGLEVEL?

1 Answers   IBM,


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

0 Answers  


What is Redefines clause?

8 Answers  


88 class is used for

5 Answers   CTS, EDS,


What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?

1 Answers  


what is call by value and call by reference ?

3 Answers   Infosys, ITC Indian Tobacco Company,


What is a subscript ?

3 Answers  


what is subscript in cobol?give realtime example?

2 Answers   Wipro,


Explain fixed length record in cobol? with suitable example

1 Answers   IBM,


How many divisions we have in Cobol ?

4 Answers   Wipro,


Categories