View previous topic :: View next topic
|
Author |
Message |
Mariraj
New User
Joined: 09 Jul 2007 Posts: 59 Location: Chennai
|
|
|
|
Code: |
FIELD NAME LEN T FIELD DATA
------------------------------ --- - ----*----1----*----2----*----3----*----4
AMOUNT 011 3 00000000000+
******************************* Bottom of data ********************************
|
This is one of the fields in a table. Could someone let me know what is the datatype of the field.
Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
How is this defined in the dclgen? What is the host-variable definition?
Looking at the value, it could be a zoned-decimal value. I have no idea what the T/3 represents. |
|
Back to top |
|
|
Mariraj
New User
Joined: 09 Jul 2007 Posts: 59 Location: Chennai
|
|
|
|
When looked into the copybook of the table the definition for this field is S9(7) COMP3 VAR.
It contains data like 5646.76657+
I need the following clarifications.
1. What does the T, which contains 3 represents?
2. Does this VAR in S9(7) COMP3 VAR a part of the definition? If so what does it mean?
3. It is containing data with decimal values, but there is no mention of it in the definition. I mean there is no V9(5) in the definition. How is it possible to have decimal values without V in the definition?
Please do clarify. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
I need the following clarifications.
1. What does the T, which contains 3 represents? |
look at the docs of the program which generated the report to find out
the info you need...
we do not know what program has been used, I hope You do |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
It contains data like 5646.76657+ |
Where/how do you see this value?
Quote: |
the definition for this field is S9(7) COMP3 VAR. |
I believe that is not compilable cobol source. . . Where did it come from?
Quote: |
How is it possible to have decimal values without V in the definition |
By scaling the value in the code.
For us to be able to help, you need to post better information. From what you have posted so far, all we can recommend os to dig deeper into your system or find others more familiar with this data & code. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
What compute language is that copy book for? COMP3 and VAR are not valid for COBOL. In COBOL a decimal value does not have to have V in the picture, if there is not one then it is assumed to be after the rightmost digit. |
|
Back to top |
|
|
|