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...


what is subscript in cobol?give realtime example?

Answers were Sorted based on User's Feedback



what is subscript in cobol?give realtime example?..

Answer / jagan kumar

it is a number of occrances of array data name. subscript is
coded in working-storage section with separate variable.
example.
01 g1.
02 ele pic x(3) occurs 10 times.
01 i pic 99.
procedure division.
perform varying i from 1 by 1 until i > 10
accept ele(i)
display ele(i)
end-perform.
in this is case i is a subscript variable

Is This Answer Correct ?    9 Yes 1 No

what is subscript in cobol?give realtime example?..

Answer / avr

01 g1.
02 ele pic x(3) occurs 10 times.
01 i pic 99.
procedure division.
perform varying i from 1 by 1 until i > 10
accept ele(i)
display ele(i)
end-perform.
in this is case i is a subscript variable

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More COBOL Interview Questions

I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?

6 Answers   IBM,


.How to add one input & one Out file in existing cobol program. how approach tell me step by step.

2 Answers   Syntel,


can we use go to statement inline-perform?

7 Answers   IBM,


What is the difference between a binary search and a sequential search?

10 Answers  


For rewrite, why is it mandatory that file needs to be opened?

0 Answers  


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

0 Answers  


What is Redefines clause?

8 Answers  


in the TIME parameter we r giving hours r minutes

4 Answers   IBM,


What is the Importance of GLOBAL clause According to new standards of COBOL?

2 Answers   Infosys,


What are the different data types available in COBOL?

4 Answers  


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

2 Answers   IBM, Steria,


01 WS-NAME PIC X(10) OCCURES 2. by this we can get ws-name 2 times. My qustion is how can we access the second name

5 Answers   TCS,


Categories