IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How do we declare Decimal 20 as comp-3


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gneelu

New User


Joined: 26 May 2006
Posts: 18

PostPosted: Mon Oct 16, 2006 7:13 pm
Reply with quote

I am having a variable decimal 20, how can i declare it as comp-3

Thanks in advance

Regards
G Neelaveni
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Mon Oct 16, 2006 11:07 pm
Reply with quote

G Neelaveni

The standard limit is 18 decimal digits unless the compiler option ARITH(EXTEND) is in effect.

Place this on the very first line of your program, even before your IDENTIFICATION DIVISION. statement.

PROCESS ARITH(EXTEND)

This will allow up to 31 decimal digits.

Dave
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Select a DB2 value in a specific deci... DB2 4
Search our Forums:

Back to Top