Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] What is the max length of alpha field?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] What is the max length of alpha field?
 Login/Join
 
Member
posted
Sorry in advance, if this question has already been posted. I just couldn't find it.

I'd like to make a table available in WebFOCUS.
Unfortunately, there are fields on the table that contain 6000+ characters (like a comment field). Potentially, I may need to drop one of these fields onto a report, so I'm wondering what problems I would cause or if this is even possible.

thanks!

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 18 | Location: Tacoma, WA | Registered: August 20, 2019Report This Post
Virtuoso
posted Hide Post
The problem may be more regarding the targeted output and available spaces on the report.
Printing/displaying 6K+ characters may be a pain...


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Expert
posted Hide Post
Alpha fields can go to 8k, but I would suggest a 4k limit.

The next option is to use TX fields. They handle fields like clobs. Check it out in the documentation


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Thanks for the thoughts, it's very helpful! I'll have try some things, but... if someone can point to me where in the docs it shows the maximum length of an alpha (or tx) field that would be awesome!
 
Posts: 18 | Location: Tacoma, WA | Registered: August 20, 2019Report This Post
Virtuoso
posted Hide Post
Best of luck finding that. I've used 3000 as my top limit in the past, and wanted to go higher. (This was in version 7.6.) I could not find official documentation, and found I had issues slinging the fields around above 3000.



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
Expert
posted Hide Post
What version of WebFOCUS are you on ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Describing Data With WebFOCUS Language Release 8206 Page 146 states that "you can have up to 4096 bytes in an XFOCUS file segment."
But this may be out of date because this works fine:
TABLE FILE car
  PRINT COUNTRY
COMPUTE FLD_A100  /A100   = '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890';
COMPUTE FLD_A1000 /A1000  = FLD_A100   | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100;
COMPUTE FLD_A10000/A10000 = FLD_A1000  | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000;
COMPUTE Comment   /A16280 = FLD_A10000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A100  | FLD_A100  | '12345678901234567890123456789012345678901234567890123456789012345678901234567890';
ON TABLE HOLD AS foccache/test FORMAT XFOCUS
END  

I can pull data into a report for the Comment field. Then if the Comment field is increased to A16281 there is an error message:
ERROR AT OR NEAR LINE      8  IN PROCEDURE xfocus_max_field_size
(FOC36381) SEGMENT SIZE FOR 'field Comment' EXCEEDS LIMIT OF 16280

Adapter Administration WebFOCUS Reporting Server Release 8206 Page 1418 indicates that with the SQL Server adapter you can have has long as A8000.
Trying this out, it does seem to work. (Note to run this test, your reporting server would need to be able to create table on SQL Server):

SET HOLDLIST = PRINTONLY
APP HOLDMETA foccache
TABLE FILE car
  PRINT COUNTRY NOPRINT
COMPUTE FLD_A100  /A100  = '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890'; NOPRINT
COMPUTE FLD_A1000 /A1000 = FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100; NOPRINT
COMPUTE Comment   /A8001 = FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 ;
ON TABLE HOLD AS testsqlmss FORMAT SQLMSS
END  

Then if I increase the field to Comment/A8001 an error appears:
 (FOC1400) SQLCODE IS 131 (HEX: 00000083) XOPEN: 42000
 : Microsoft SQL Server Native Client 11.0: [42000] The size (8001) given t
 : o the column 'Comment' exceeds the maximum allowed for any data type (80
 : 00).

Page 1788 indicates a max of A4000 for Oracle.
Page 522 indicates a max of A32768 for DB2.

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


WebFOCUS 8.2.06
 
Posts: 210 | Location: Sterling Heights, Michigan | Registered: October 19, 2010Report This Post
Guru
posted Hide Post
I could be wrong but I remember the limit being 32K for alpha.


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report This Post
Expert
posted Hide Post
One thing that needs to be kept in mind, is what is being done with the field.

If you are applying a function to it, what does the function support.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
thanks dbeagan!

[QUOTE]Originally posted by dbeagan:
Describing Data With WebFOCUS Language Release 8206 Page 146 states that "you can have up to 4096 bytes in an XFOCUS file segment."
But this may be out of date because this works fine:
TABLE FILE car
  PRINT COUNTRY
COMPUTE FLD_A100  /A100   = '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890';
COMPUTE FLD_A1000 /A1000  = FLD_A100   | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100;
COMPUTE FLD_A10000/A10000 = FLD_A1000  | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000;
COMPUTE Comment   /A16280 = FLD_A10000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A100  | FLD_A100  | '12345678901234567890123456789012345678901234567890123456789012345678901234567890';
ON TABLE HOLD AS foccache/test FORMAT XFOCUS
END  

I can pull data into a report for the Comment field. Then if the Comment field is increased to A16281 there is an error message:
ERROR AT OR NEAR LINE      8  IN PROCEDURE xfocus_max_field_size
(FOC36381) SEGMENT SIZE FOR 'field Comment' EXCEEDS LIMIT OF 16280

Adapter Administration WebFOCUS Reporting Server Release 8206 Page 1418 indicates that with the SQL Server adapter you can have has long as A8000.
Trying this out, it does seem to work. (Note to run this test, your reporting server would need to be able to create table on SQL Server):

SET HOLDLIST = PRINTONLY
APP HOLDMETA foccache
TABLE FILE car
  PRINT COUNTRY NOPRINT
COMPUTE FLD_A100  /A100  = '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890'; NOPRINT
COMPUTE FLD_A1000 /A1000 = FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100  | FLD_A100; NOPRINT
COMPUTE Comment   /A8001 = FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 | FLD_A1000 ;
ON TABLE HOLD AS testsqlmss FORMAT SQLMSS
END  

Then if I increase the field to Comment/A8001 an error appears:
[code]
(FOC1400) SQLCODE IS 131 (HEX: 00000083) XOPEN: 42000
: Microsoft SQL Server Native Client 11.0: [42000] The size (8001) given t
: o the colum
 
Posts: 18 | Location: Tacoma, WA | Registered: August 20, 2019Report This Post
Member
posted Hide Post
thanks Waz!
quote:
Originally posted by Waz:
One thing that needs to be kept in mind, is what is being done with the field.

If you are applying a function to it, what does the function support.
 
Posts: 18 | Location: Tacoma, WA | Registered: August 20, 2019Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] What is the max length of alpha field?

Copyright © 1996-2020 Information Builders