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

can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

2390


What is the difference between comp and comp-3?

1134


How many bytes S(8) comp field occupy and its maximum value?

2091


What is the utilization of copybook in cobol?

1117


What is comp-1 and comp-2?

1187


How do you get the data to code the BMS macro?

1922


i want a program using by if, evaluate , string, unstring, perform, occurs?

4640


Which is not true about evaluate statement

2396


What is amode(31)

1110


What are declaratives and what are their uses in cobol?

1135


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3211


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

2324


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2408


What are the different rules to perform a Search?

1050


What are the cobol coding sheets?

1180