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

What is the max length of a decimal field in Eztrieve


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajanish

New User


Joined: 02 May 2006
Posts: 7
Location: Charlotte, NC, US

PostPosted: Wed Oct 11, 2006 11:12 pm
Reply with quote

We cant have a decimal field of length greater than 18 in COBOL, but can we have it in Eztrieve.
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Wed Oct 11, 2006 11:50 pm
Reply with quote

If you use CBL ARITH(EXTEND) in cobol program you can make use of extended digit positions from 18 to 31.

Code:

 ARITH                                                                       
                                                                             
 +--- ARITH option syntax ------------------------------------------------+   
 ?                                                                        ?   
 ?            +-COMPAT-+                                                  ?   
 ? >>--ARITH(---EXTEND---)--------------------------------------------->< ?   
 ?                                                                        ?   
 +------------------------------------------------------------------------+   
                                                                             
   Default is: ARITH(COMPAT)                                                 
                                                                             
 Abbreviations are: AR(C), AR(E)                                             
                                                                             
 When you specify ARITH(EXTEND):                                             
                                                                             
 o   The maximum number of digit positions that you can specify in the       
     PICTURE clause for packed-decimal, external-decimal, and                 
     numeric-edited data items is raised from 18 to 31.                       
                                                                             
 o   The maximum number of digits that you can specify in a fixed-point       
     numeric literal is raised from 18 to 31. You can use numeric literals   
     with large precision anywhere that numeric literals are currently       
     allowed, including:                                                     
                                                                             
     -   Operands of PROCEDURE DIVISION statements                           
                                                                             
     -   VALUE clauses (for numeric data items with large-precision         
         PICTURE)                                                           
                                                                             
     -   Condition-name values (on numeric data items with large-precision   
         PICTURE)                                                           
                                                                             
 o   The maximum number of digits that you can specify in the arguments to   
     NUMVAL and NUMVAL-C is raised from 18 to 31.                           
                                                                             
 o   The maximum value of the integer argument to the FACTORIAL function is 
     29.                                                                     
                                                                             
 o   Intermediate results in arithmetic statements use extended mode.       
 When you specify ARITH(COMPAT):                                             
                                                                             
 o   The maximum number of digit positions in the PICTURE clause for         
     packed-decimal, external-decimal, and numeric-edited data items is 18.   
                                                                             
 o   The maximum number of digits in a fixed-point numeric literal is 18.     
                                                                             
 o   The maximum number of digits in the arguments to NUMVAL and NUMVAL-C     
     is 18.                                                                   
                                                                             
 o   The maximum value of the integer argument to the FACTORIAL function is   
     28.                                                                     
                                                                             
 o   Intermediate results in arithmetic statements use compatibility mode.   
                                                                             
 RELATED CONCEPTS                                                             
 Appendix A, "Intermediate results and arithmetic precision" in               
 the Enterprise COBOL for z/OS V3.4 Programming Guide                         


And i think max length is 18 in Eztrieve.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top