COBOL User Groups COBOL COBOL Programming
Home | Search | User Registration | Membership | Contact | About | Advertise

COBOL Resources

 >  Blogs
 >  Books
 >  Code Samples
 >  Courses
 >  Forums
 >  Knowledge Bases
 >  Magazines
 >  Manuals
 >  Portals
 >  Support
 >  Tutorials
 >  User Groups
 >  White Papers

COBOL Software

 >  Change Management
 >  Code Conversion
 >  Compilers
 >  Data Access
 >  Database
 >  Documentation
 >  Editors
 >  File Conversion
 >  GUI
 >  Modernization
 >  Report Generators
 >  Sort
 >  Terminal Emulators
 >  Test
 >  Tools
 >  Trans. Processing

COBOL Information

 >  Events
 >  Jobs
 >  News Articles
 >  Product News
 >  Standards
 

COBOL Forums

 
COBOL Language [ return ]
From Message
jassi

 Email

11/08/2005
03:43:29
Subject: query!!!


Message:
Suppose a table has a field of type NUMBER(31,5).

Then how can one represent this in cobol-85 where at max only 18 digits are allowed to represent a oracle table field of NUMBER.







sreevalsan

11/08/2005
05:15:14
RE: query!!!


Message:
It is simple Use Computation clause.

In the Pic clause use Comp.
Many Cobols have diff. computational clause.

Regds
Sreevalsan


vst

1/11/2006
02:04:57
RE: query!!!


Message:
I suspect there is no simple way to represent Oracle NUMBER(31,5) data as any of Cobol(-85) packed-decimal or computational type since both are restricted by 18 digits. Simplest way is truncate Oracle column data to 18 digits. I have met the same problem while conversion of Easytrieve code (which allows numeric data with more than 18 digits) to Cobol (see http://www.gomel.iba.by/en/show/pages/147/148/mass-conversion_tool)


 
[ Go to Top of Page ]
COBOL NuTrak Ad


COBOL Forums
COBOL Forum Do you need COBOL help?
Let the COBUG members help you. Post your issues!



COBOL Job Resources
COBOL Jobs Here are references to a wealth of COBOL job resources, including job listing sites, resume preparation, and interview questions.


Job and Resume Matchmaker!
COBOL Jobs Employers submit your COBOL job openings. Job seekers submit your resumes.

Join COBUG!
COBOL User Groups Become a part of the COBUG community today. Register Now ...


Start a COBOL User Group!
COBOL User Groups Make a difference today and start an Acucorp User Group, Fujitsu User Group, or Micro Focus User Group

COBOL (c) Information Computing Services. All Rights Reserved. COBOL