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


i want to store 20 digits . h will u do it in cobol ?

Answers were Sorted based on User's Feedback



i want to store 20 digits . h will u do it in cobol ?..

Answer / paray2x

Most of the modern compilers support upto 31 digits. Try
compiling your program and you'll be able to find out.

Else, if your requirement is only to store and not do any
computation, you can have a group variable.

05 My-number.
10 My-number-part1 pic 9(15).
10 My-number-part2 pic 9(5).

Is This Answer Correct ?    13 Yes 3 No

i want to store 20 digits . h will u do it in cobol ?..

Answer / vaneesh

Just write PROCESS ARITH(EXTEND) before identification
division, you can use upto 9(31).

Is This Answer Correct ?    5 Yes 0 No

i want to store 20 digits . h will u do it in cobol ?..

Answer / nitesh sethi

Use ARiTH(EXTEND) as compile option and you can extend
numeric field upto 30 digits

Is This Answer Correct ?    4 Yes 3 No

i want to store 20 digits . h will u do it in cobol ?..

Answer / yogesh

U can use either tables(ARRAYS) or can store those values
as elementary data items

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

What was removed from COBOL in the COBOL II implementation?

0 Answers  


What are the different ways to run a COBOL DB2 program using JCL?

2 Answers  


How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?

3 Answers   Cap Gemini, CTS,


What COBOL construct is the COBOL II EVALUATE meant to replace?

1 Answers  


Why we need to use redefine clause when we can define the variable seperately... what is actual need....

5 Answers   Accenture,


Have you used comp and comp-3 in your project? And how?

0 Answers   IBM,


what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.

3 Answers   HCL, TCS,


input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.

1 Answers  


What type of Call you would use if you don;t want the control back to the calling program?

8 Answers   TCS,


What R 2 of the common forms of the EVALUATE STATEMENT ?

1 Answers   Cap Gemini,


hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?

1 Answers  


what happens when a copybook variables are declared using include statement ?

3 Answers   IBM,


Categories