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: 10274
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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


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