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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are INPUT PROCEDURE and OUTPUT PROCEDURE?

1300


How to remove 2 duplicate records and copy only one using job control language?

1219


What is the utilization of copybook in cobol?

1194


Write some characteristics of cobol as means of business language.

1145


Write a program that uses move corresponding.

1146


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2548


What is the difference between PIC 9.99 and 9v99 in COBOL?

1334


What is cobol?

1238


Write a program to enter and display the names of students in a class using the occurs clause.

1208


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17880


How do you define a variable of comp-1 and comp-2?

1201


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2473


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5373


Which mode is used to operate the sequential file?

1205


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

1246