Hi guys,
Firstly, Thank you very much for reading and hopefully answering my question. I'm in my first COBOL I class at college and to be frank, i'm floating around hoping i'm on the right track.
My questions is I have a string of numbers in my input file:
028238.24
However, when I compile it comes up with an error for a section of the file that uses that specific spot:
Operand must be an arithmetic expression
as well as Operand must be a numeric data-name or a numeric literal.
I've read some of the question on this forum already and they haven't helped me much, so i'm hoping a more specific question will do the trick.
What I want displayed 28,238.24 I would like to have commas as well as the 0 to be purged. I tried to do a numeric literal but it is giving me these errors.
05 CM-BEGINNING-BALANCE PIC 9(7)V99.
Is my routine to pull it from the input file.
and my Customer-Line (What i want to be printed, basically) is coded as:
05 CL-BEGINNING-BALANCE PIC ZZZ,ZZ9.99.
Thank you very much.
Firstly, Thank you very much for reading and hopefully answering my question. I'm in my first COBOL I class at college and to be frank, i'm floating around hoping i'm on the right track.
My questions is I have a string of numbers in my input file:
028238.24
However, when I compile it comes up with an error for a section of the file that uses that specific spot:
Operand must be an arithmetic expression
as well as Operand must be a numeric data-name or a numeric literal.
I've read some of the question on this forum already and they haven't helped me much, so i'm hoping a more specific question will do the trick.
What I want displayed 28,238.24 I would like to have commas as well as the 0 to be purged. I tried to do a numeric literal but it is giving me these errors.
05 CM-BEGINNING-BALANCE PIC 9(7)V99.
Is my routine to pull it from the input file.
and my Customer-Line (What i want to be printed, basically) is coded as:
05 CL-BEGINNING-BALANCE PIC ZZZ,ZZ9.99.
Thank you very much.