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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
what does this mean ?
PIC 9(7)V99 COMP-3.
|
#2
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|