Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What is the data type of the filed?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: What is the data type of the filed?
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

Site Director


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

PostPosted: Fri Dec 12, 2008 11:21 am    Post subject:
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    Post subject: Reply to: What is the data type of the filed?
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Fri Dec 12, 2008 5:35 pm    Post subject: Reply to: What is the data type of the filed?
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

Site Director


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

PostPosted: Fri Dec 12, 2008 9:55 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us