Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CASE-OPENED] DB2 and WebFOCUS-Column length
Go
New
Search
Notify
Tools
Reply
  
[CASE-OPENED] DB2 and WebFOCUS-Column length
 Login/Join
 
Guru
posted
Hi All,

I'm in WebFOCUS 8.0.07 and DB2.

Though the length of column(Integer) in DB is only 4, it shows up the data values if its even more than 4 in DB
(eg, 365678).

describle table scehmaname.tablename;

However, in WF, as the field USAGE is 4 in the master, if data exceeds 4, filled up with asterix(****) in the report output as expected. Manually modified in the master accordingly.

Have used Oracle DB so far, never faced like this before.

Thanks,
Rifaz

This message has been edited. Last edited by: <Kathryn Henning>,


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 405 | Location: India | Registered: June 13, 2013Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Are you sure the database is not describing that field length as number of bytes? 4 Bytes goes well beyond 9999, all the way up to 2**32.

You can approximate the field size in the master file using something along the lines of USAGE=I10 (I seem to recall that's the limit for integers in WF)


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1644 | Location: Enschede, Netherlands | Registered: August 12, 2010Reply With QuoteReport This Post
Guru
posted Hide Post
Thanks Wep5622 for your reply,

When you describe the table,
COLNAME,TYPESCHEMA,TYPENAME,LENGTH,SCALE,NULLABLE. Here, column LENGTH represents in bytes. Is it so? Everytime, we have to edit our masters manually according to data types. Confused Am i correct?

How about VARCHAR?

This message has been edited. Last edited by: Rifaz,


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 405 | Location: India | Registered: June 13, 2013Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Rifaz,
I'm afraid you are mixing up between Integer and Alpha fields.
I don't know what the WF DB2 interface shows when you create a Master.
However Integers (I fields) clasically are 4 bytes long (in some databases you have "small int" fields which are 2 bytes).
These fields are usually described by WF as USAGE=I11, ACTUAL=I4. You shouldn't have a problem with that.
If you do see a USAGE=I4 and you get **** in your output, increase the number of displayed digits to I6 or so. And I suggest you find out why this USAGE was used.

What about VARCHAR?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1934 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteReport This Post
Guru
posted Hide Post
It shows as USAGE=I4 only, have to change it to 10 for long int and 5 for small int manually in the master.
So, I'm little worried about VARCHAR, will it be any case like, lets say, in DB its length is 100, do we need to change in our master, increase to A200 or above, like we did it for integers.


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 405 | Location: India | Registered: June 13, 2013Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CASE-OPENED] DB2 and WebFOCUS-Column length

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.