Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Decimal versus binary arithmetic was Re: J4 - presentation/discussion
Clark F Morris wrote:
> On Wed, 02 Apr 2008 02:45:10 GMT, "William M. Klein"
> <wmklein@nospam.netcom.com> wrote:
> 
> Frank is the person who did the compilation since I don't have access
> to a z series computer (or a COBOL compiler).  It would be interesting
> to see the code generation for a computer that is basically binary
> (Intel, HP, AIX boxes, etc.).

DECDIV  Source Listing  3-APR-2008 06:13:52 -
Compaq COBOL V2.8-1286            Page 1

Source Listing  3-APR-2008 06:13:19 -
SYS$SYSDEVICE:[USERS.FROG.COBOL]DECDIV .COB;4

1 IDENTIFICATION DIVISION.
2 PROGRAM-ID. decdiv.
3 ENVIRONMENT DIVISION.
4 DATA DIVISION.
5 WORKING-STORAGE SECTION.
6 01      numerator             pic 9(9)         comp-5 value 10.
7 01      denominator         pic 9(9)         comp-5 value 5.
8 01      quotient                pic 9(9)v9(4) comp-5.
...................................................1
%COBOL-F-NOSCALE, (1) Operand must be an integer

9
10 PROCEDURE DIVISION.
11 p0.
12         compute quotient = numerator / denominator
13         display quotient
14
15         stop run.
16
17 end program decdiv.

Won't compile on my Alpha PWS600au running OpenVMS 7.3-1.

Jeff



----== Posted via Pronews.Com - Unlimited-Unrestricted-Secure Usenet News==-
---
http://www.pronews.com The #1 Newsgroup Service in the World! >100,000 Newsg
roups
---= - Total Privacy via Encryption =---

Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Campbell
04-03-08 12:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:09 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.