A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » General Hardware & Peripherals » Storage & Hardrives
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

what does this mean ?



 
 
Thread Tools Display Modes
  #1  
Old June 15th 04, 06:46 PM
dafon
external usenet poster
 
Posts: n/a
Default what does this mean ?

PIC 9(7)V99 COMP-3.



  #2  
Old June 15th 04, 07:27 PM
Jason Mather
external usenet poster
 
Posts: n/a
Default

dafon wrote:
PIC 9(7)V99 COMP-3.



It means you need to hire a COBOL programmer. He'll
have an EBCDIC chart in his shirt pocket, too.

  #3  
Old June 16th 04, 01:13 AM
Malcolm Weir
external usenet poster
 
Posts: n/a
Default

On Tue, 15 Jun 2004 14:27:45 -0400, Jason Mather
wrote:

dafon wrote:
PIC 9(7)V99 COMP-3.


It means you need to hire a COBOL programmer. He'll
have an EBCDIC chart in his shirt pocket, too.


Not that "Computational Type 3" has anything to do with EBCDIC; IIRC,
it's BCD.

Which means that 9(7)V99 would be a 9 BCD digit number with two digits
past the decimal; I forget what the significance of the "V" is: maybe
it was only print "." if the decimal digits were non-zero.

Malc.
  #4  
Old June 16th 04, 06:32 AM
Gordo Laqua
external usenet poster
 
Posts: n/a
Default

Malcolm Weir wrote in
:

On Tue, 15 Jun 2004 14:27:45 -0400, Jason Mather
wrote:

dafon wrote:
PIC 9(7)V99 COMP-3.


It means you need to hire a COBOL programmer. He'll
have an EBCDIC chart in his shirt pocket, too.


Not that "Computational Type 3" has anything to do with EBCDIC; IIRC,
it's BCD.

Which means that 9(7)V99 would be a 9 BCD digit number with two digits
past the decimal; I forget what the significance of the "V" is: maybe
it was only print "." if the decimal digits were non-zero.

Malc.


If I remember my cobol correctly, this is the notation that you use for a
computational field to indicate where the decimal point is, without
actually having a decimal point there. Before printing, you would move
it to a PIC 9(7).99 field. You could do computation on either field, but
the field with the 'V' would be much faster.

Then again, its been 20 years, so I could be wrong.......



--Gord.

--
------------------------------------------------
"I didn't get rich by writing a lot of cheques."
- Bill Gates to Homer Simpson
  #5  
Old June 16th 04, 03:45 PM
Anton Rang
external usenet poster
 
Posts: n/a
Default

Gordo Laqua writes:
Malcolm Weir wrote in
:

On Tue, 15 Jun 2004 14:27:45 -0400, Jason Mather
wrote:

dafon wrote:
PIC 9(7)V99 COMP-3.


It means you need to hire a COBOL programmer. He'll
have an EBCDIC chart in his shirt pocket, too.


Not that "Computational Type 3" has anything to do with EBCDIC; IIRC,
it's BCD.


Does the standard actually specify this? It's certainly common usage.
My copy's at home and probably covered in an inch of dust by now....

Which means that 9(7)V99 would be a 9 BCD digit number with two digits
past the decimal; I forget what the significance of the "V" is: maybe
it was only print "." if the decimal digits were non-zero.

Malc.


If I remember my cobol correctly, this is the notation that you use for a
computational field to indicate where the decimal point is, without
actually having a decimal point there. Before printing, you would move
it to a PIC 9(7).99 field. You could do computation on either field, but
the field with the 'V' would be much faster.

Then again, its been 20 years, so I could be wrong.......


Naw, you're right. V is the virtual decimal point, at least that's how
I always remembered it.

-- Anton
  #6  
Old June 18th 04, 09:07 AM
dafon
external usenet poster
 
Posts: n/a
Default

that's right. it is an implied decimal.
It also implies that cobol is driving me out of my mind.

"Anton Rang" wrote in message
...
Gordo Laqua writes:
Malcolm Weir wrote in
:

On Tue, 15 Jun 2004 14:27:45 -0400, Jason Mather
wrote:

dafon wrote:
PIC 9(7)V99 COMP-3.

It means you need to hire a COBOL programmer. He'll
have an EBCDIC chart in his shirt pocket, too.

Not that "Computational Type 3" has anything to do with EBCDIC; IIRC,
it's BCD.


Does the standard actually specify this? It's certainly common usage.
My copy's at home and probably covered in an inch of dust by now....

Which means that 9(7)V99 would be a 9 BCD digit number with two digits
past the decimal; I forget what the significance of the "V" is: maybe
it was only print "." if the decimal digits were non-zero.

Malc.


If I remember my cobol correctly, this is the notation that you use for

a
computational field to indicate where the decimal point is, without
actually having a decimal point there. Before printing, you would move
it to a PIC 9(7).99 field. You could do computation on either field,

but
the field with the 'V' would be much faster.

Then again, its been 20 years, so I could be wrong.......


Naw, you're right. V is the virtual decimal point, at least that's how
I always remembered it.

-- Anton



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 HardwareBanter.
The comments are property of their posters.