HP3000-L Archives

February 2004, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Brian Donaldson <[log in to unmask]>
Reply To:
Brian Donaldson <[log in to unmask]>
Date:
Fri, 13 Feb 2004 12:36:20 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (41 lines)
Your 123.45- has been defined as PIC 999.99- (or zz9.99- maybe)

You need to change your PIC clause to PIC --9.99

That will give you the required floating leading negative sign.


BD


On Wed, 11 Feb 2004 12:57:03 -0800, Newton, Ernie <[log in to unmask]> wrote:

>Greetings,
>
>I have a value that reads 123.45- and I want
>the minus sign to float at the beginning
>of the number.
>
>For the life of me, I can't remember how to do
>that and I have my college COBOL text book, but
>it's not in there.
>
>In WORKING-STORAGE, I have the variable with
>the following picture clause; S9(5)V99 COMP-3.
>
>Is there a "LEADING" option that I could put before
>or after COMP?  And, can I make the minus sign
>float?  By float, I mean that I want the sign
>to be at the first byte to the left of the number,
>no matter the size of the number.
>
>Thanks,
>
>Ernie
>
>* To join/leave the list, search archives, change list settings, *
>* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2