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

How to define variable 9(20) in COBOL, because compiler
does not allow us to declare variables with Pic 9(18). Can
anyone please let me know the answer... I know one answer
to this question which is to use Compiler option Arith
(Extend) during Compilation. It extends the maximum limit
to 9(32)..Just wanted to know if there is any other way to
extend this?

Answer Posted / abc

try with this:

01 VARIABLE-ABC.
03 VAR-1 PIC 9(18).
03 VAR-2 PIC 9(2).

This may work, please try and see.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

1249


Name the sections present in data division.

1307


how do you reference the fixed unblock file formats from cobol programs

1305


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4208


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2605


how to refer the data field?

2319


Which division and paragraphs are mandatory for a COBOL program?

1330


) how do u code after getting data?

2208


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

1259


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

1302


How many sections are there in data division in COBOL?

1182


A table has two indexes defined. Which one will be used by the SEARCH?

1325


What is a report item?

1193


State the various causes of s0c1, s0c5 and s0c7.

1140


What is a scope terminator give example?

1155