IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is the data type of the filed?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mariraj

New User


Joined: 09 Jul 2007
Posts: 59
Location: Chennai

PostPosted: Fri Dec 12, 2008 10:44 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Dec 12, 2008 11:21 am
Reply with quote

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
View user's profile Send private message
Mariraj

New User


Joined: 09 Jul 2007
Posts: 59
Location: Chennai

PostPosted: Fri Dec 12, 2008 2:53 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Dec 12, 2008 5:35 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Dec 12, 2008 9:55 pm
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat Dec 13, 2008 12:00 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top